wpf 创建一个 MahApps.Metro 自定义对话框并显示它 - 一步一步如何请

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32966717/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 13:27:14  来源:igfitidea点击:

Create a MahApps.Metro custom dialog and displaying it - Step by step howto please

wpfdialogmahapps.metrocustomdialog

提问by Gabe

using VS 2013 and MahApps. I want to create a simple totally custion dialog, and am lost.

使用 VS 2013 和 MahApps。我想创建一个简单的完全custion 对话框,但我迷路了。

I would like to use XAML, but only code is also OK. The examples and documentations are very limited. Anyone can walk me through this?

我想使用 XAML,但只有代码也可以。示例和文档非常有限。任何人都可以引导我完成这个吗?

Thanks!

谢谢!

回答by Mikhail Tumashenko

There's already an answerfrom MahApps author. He suggested to replace the dialog template with a style.

MahApps作者已经给出了答案。他建议用样式替换对话框模板。

Also, there's a SimpleChildWindowproject that he's supporting. It's not totally custom but surely simple.

此外,还有一个他正在支持的SimpleChildWindow项目。这不是完全定制的,但肯定很简单。