Reputation: 21
I have a WPF application, and I use a metro dialog
to show messages. Can I show the message on the top of the window? Can I modify the location of the popup
?
Upvotes: 0
Views: 3842
Reputation: 21
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)
{
}
Upvotes: 2