我有一个WPF应用程序,我使用metro dialog
来显示消息。我可以在窗口顶部显示消息吗?我可以修改popup
的位置吗?
答案 0 :(得分:2)
我找到了一种方法:
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)
{
}