Authentic Windows 7 theme in Windows 10?

I am developing a WPF desktop application that runs in a Citrix environment that applies the main Windows 7 theme to my application. As a result, I run Windows 7 on my dev workstation to make sure the user interface is displayed as intended.

I would like to upgrade it to Windows 10, but I need to find a tool to run my application with a Windows 7 theme in Windows 10. By the way (and strange), if I run the application in compatibility mode with Windows XP on Windows 10 it displays with a Windows theme 7, so of course the OS can display a theme. I'm not sure I want to do all the testing of my application with compatibility mode enabled, though ...

I am also aware of third-party solutions, but to eliminate any discrepancies, I would like to use Microsoft's authentic Windows 7 theme.

Are there any tricks / tweaks / hacks to just enable the Windows 7 theme for my application in Windows 10?

+6
source share
1 answer

The WPF theme for Aero is in the PresentationFramework.Aero library, so add this as a link. Then in App.xaml add the following concatenated dictionary to override the default theme.

 <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml" /> </ResourceDictionary.MergedDictionaries> 

I am pleasantly surprised that they finally updated WPF in .NET 4.5 to support the Windows 8/10 theme (they were not at the beginning of Windows 8) with the following:

  • PresentationFramework.Aero2
  • PresentationFramework.AeroLite

I have not seen this until today, you need to work more often with .NET 4.5;)

+7
source

All Articles