Search code examples
c#wpfmsstyles

WPF looks win98'ish with custom ms-style


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?


Solution

  • 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.