WPF的MessageBox按钮是不是OS主题 [英] WPF MessageBox buttons aren't OS themed

查看:130
本文介绍了WPF的MessageBox按钮是不是OS主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此​​,在我的WPF消息框中的按钮不被OS主题。
我甚至尝试这种方法并没有奏效。

So the buttons of my message box in WPF aren't themed by the OS.
I even tried this method and it didn't work.

我有一个清单,我在Windows 7旗舰版的x86和.NET Framework 4客户端配置文件运行。

I have a manifest, I am running under Windows 7 Ultimate x86 and .NET Framework 4 Client Profile.

编辑:它的工作原理现在

推荐答案

您所做的已经保存,但你不能查看它们,而调试在VS的变化为了解决这个问题,用鼠标右键单击您的项目,然后单击属性,然后进入调试。有一个复选框,在指定页面底部的启用在Visual Studio宿主进程 - 取消勾选此。建议您重新启动进行此更改后的Visual Studio。

The changes you've made have been saved but you cannot view them whilst debugging in VS. To fix this, right click your project and click "Properties" and then go to "Debug". There is a checkbox at the bottom of the page named "Enable the Visual Studio hosting process" - un-tick this. It is recommended that you restart visual studio after making this change.

另外,你可以建立一个没有调试(CTRL + F5)。

Alternatively, you can just build without debugging (CTRL+F5).

这篇关于WPF的MessageBox按钮是不是OS主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆