在 Mahapps Metro 中是否可以像 Github for Windows 一样在 MetroWindow
底部显示标准消息对话框?应用程序呢?我想通知用户有关异常情况,但不需要在他/她继续使用该应用程序之前关闭此对话框。
到目前为止,我使用以下代码打开消息对话框,但这是一种阻塞方式,它出现在 MetroWindow
的中心:
await this.ShowMessageAsync("My title", "My error message");
我想创建一个类似对话框的 Github for Windows
。您可以在此处查看屏幕截图:
在 Github for Windows
中,您可以撤消任何操作,但此消息只会出现几秒钟,然后会自动隐藏。
最佳答案
您要查找的不是对话框,而是 Flyout控件的 Position
属性设置为 Bottom
。
另请参阅 GitHub 存储库上的讨论:https://github.com/MahApps/MahApps.Metro/issues/1352
关于c# - 马哈普斯地铁 : Show non-modal auto-closing message dialog at the bottom of the window,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26237436/