Search code examples
c#wpfwindowswindows-server

Styles not loading on Windows Server


I have a WPF application here with a lots of custom styles.

With Windows 7 or 8(.1) the applications looks very good. But if the application is started on Windows Server (2008 - 2012) the application looks like some of the styles did not load or some property's are not set.

I'm confused why this is happening, do I need to include some style information in my application which are present on Windows 7/8 but not on Windows Server

What I have done:

1. Installed Desktop Experience for server 2008 and it did not fix my problems. Still some of my custom styles are not loaded. For example I can't see my custom borders on the buttons.

2. Enabled & started the Themes Service (Like suggested in Toan Nguyen's answer). Unfortunately I can't change to areo theme via RDP


Here is a example screenshot. THis is not the only thing that is not displayed for Windows Server.

Left 2008 - Right Windows 8.1. To avoid confusion: The right one looks identical on Windows 7. Left 2008 - Right Windows 8.1


Solution

  • the reason why the style wasn't applied for windows server 2003/2008 or XP because Aero theme is not available on those operation systems. To enable Aero theme on windows server 2008 you can follow this guide