[英]WPF - Metro Dialog Settings (mahapps) on the top of the screen?
I have a WPF application, and I use a metro dialog
to show messages. 我有一个WPF应用程序,并且使用了
metro dialog
来显示消息。 Can I show the message on the top of the window? 我可以在窗口顶部显示消息吗? Can I modify the location of the
popup
? 我可以修改
popup
的位置吗?
I found a way: 我找到了一个方法:
try
{
var mySettings = new MetroDialogSettings
{
AffirmativeButtonText = "Yes"
};
var cd = new CustomDialog
{
VerticalAlignment = VerticalAlignment.Top,
VerticalContentAlignment = VerticalAlignment.Top
};
await DialogManager.ShowMetroDialogAsync(this, cd, mySettings);
}
catch (Exception ex)
{
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.