Mahapps Metro:在窗口底部显示非模态自动关闭消息对话框

Mir*_*rko 5 c# wpf github-for-windows mahapps.metro

是否可以在Mahapps Metro中显示标准消息对话框,MetroWindow就像Github for Windows应用程序一样?我想通知用户有关异常的信息,但无需在他/她继续使用该应用程序之前关闭此对话框.

到目前为止,我使用以下代码打开消息对话框,但这是一种阻止方式,它出现在以下位置的中心MetroWindow:

await this.ShowMessageAsync("My title", "My error message");
Run Code Online (Sandbox Code Playgroud)

我想创建一个Github for Windows类似的对话框.你可以在这里看到截图:

截图

Github for Windows您可以撤消任何操作,但此消息只出现几秒钟,比自动皮.

Fla*_*bug 5

您要查找的不是对话框,而是属性设置为的Flyout控件。PositionBottom

另请参阅 GitHub 存储库上的此讨论:https : //github.com/MahApps/MahApps.Metro/issues/1352