Tamás Kerék
Tamás Kerék

Reputation: 21

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. Can I show the message on the top of the window? Can I modify the location of the popup?

Upvotes: 0

Views: 3842

Answers (1)

Tamás Kerék
Tamás Kerék

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

Related Questions