1

When I apply a custom msstyle on my system (any msstyle) all WPF components change their appearance to this:

enter image description hereWhy it's happening? Any way to solve it?

Gilad Naaman
  • 6,390
  • 15
  • 52
  • 82
  • use custom styles, so controls will have the same UI on different OS setups. Sometimes I use WPFToolkit: http://wpf.codeplex.com/ – Tigran Dec 22 '11 at 13:56

1 Answers1

2

According to this blog, you can do the following in App.xaml:

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

I tesed it by setting my Window 7 Theme to "Windows-Classic". The controls still have the Windows 7 look.

Adam
  • 15,537
  • 2
  • 42
  • 63