WPF看起来像自定义ms风格的win98'ish

时间:2011-12-22 13:51:59

标签: c# wpf msstyles

当我在我的系统上应用自定义msstyle(任何msstyle)时,所有WPF组件都会将其外观更改为:

enter image description here为什么会这样? 有什么方法可以解决吗?

1 个答案:

答案 0 :(得分:2)

根据this blog,您可以在App.xaml中执行以下操作:

<Application.Resources>
    <ResourceDictionary Source="/PresentationFramework.Aero;V3.0.0.0;31bf3856ad364e35;component\themes/aero.normalcolor.xaml" />    
</Application.Resources>

我通过将我的Window 7主题设置为“Windows-Classic”来解决它。控件仍然具有Windows 7外观。