WPF - 屏幕顶部的地铁对话框设置(mahapps)?
WPF - Metro Dialog Settings (mahapps) on the top of the screen?
我有一个 WPF 应用程序,我使用 metro dialog
来显示消息。我可以在 window 的顶部显示消息吗?我可以修改 popup
的位置吗?
我找到了一个方法:
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)
{
}
我有一个 WPF 应用程序,我使用 metro dialog
来显示消息。我可以在 window 的顶部显示消息吗?我可以修改 popup
的位置吗?
我找到了一个方法:
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)
{
}