Mahapps Metro: show a modeless auto close dialog at the bottom of the window

Perhaps a standard message box at the bottom of MetroWindow will appear in Mahapps Metro, as shown in Github for Windows .? I want to notify the user of exceptions, but without having to close this dialog box before he / she continues to use the application.

So far I have been using the following code to open a message dialog, but this is a blocking method and it appears in the center of MetroWindow :

 await this.ShowMessageAsync("My title", "My error message"); 

I want to create a Github for Windows dialog box. You can see the screenshot:

screenshot

In Github for Windows you can undo any operation, but this message only appears for a few seconds, and does not automatically hide.

+5
source share
1 answer

What you are looking for is not a dialog, but a Flyout with the Position attribute set to Bottom .

Also see the discussion in the GitHub repository: https://github.com/MahApps/MahApps.Metro/issues/1352

+3
source

Source: https://habr.com/ru/post/1204179/


All Articles