c# - 马哈普斯地铁 : Show non-modal auto-closing message dialog at the bottom of the window

标签 c# wpf github-for-windows mahapps.metro

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

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

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

我想创建一个类似对话框的 Github for Windows。您可以在此处查看屏幕截图:

screenshot

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/

相关文章:

c# - visual studio Web 服务请求 415 错误

c# - 为什么开头和结尾的正则表达式在 C# 上不起作用?

c# - 沿 XAML Shapes.Path 获取点

windows - 适用于 Windows 8 的 Github 无法克隆 repo

c# - 用C#写一个文件 "on-the-fly"给客户端

c# - 使用哪个,C# 还是 F#?在这个 "real world"案例中

wpf - 数据绑定(bind) : multiple sources for one property

.net - 定期部署 .NET/WPF 应用程序进行内部测试

github-for-windows - 适用于Windows的GitHub-它是开源的吗?

git - git 克隆密码存储或缓存在哪里?