Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authentic Windows 7 Theme in Windows 10?

I develop a WPF desktop application that runs in a Citrix environment which applies the Windows 7 Basic Theme to my application. As a result, I run Windows 7 on my dev workstation to make sure the UI renders as intended.

I would like to upgrade it to Windows 10, however, but I have to find means of running my app with the Windows 7 theme within Windows 10. Incidentally (and oddly), if I run my app in Windows XP compatibility mode on Windows 10, it renders with the Windows 7 theme, so surely the OS is able to render the theme. I'm not sure I want to do all the testing of my app with compatibility mode activated, though...

I am also aware of 3rd party theming solutions, but to rule out any discrepancies, I would like to use the authentic Windows 7 theme from Microsoft.

Are there any tricks/tweaks/hacks out there to simply enable the Windows 7 theme for my app in Windows 10?

like image 292
Tormod Fjeldskår Avatar asked Nov 23 '15 07:11

Tormod Fjeldskår


People also ask

Can I get Windows 7 theme on Windows 10?

Open "Personalization" from the Desktop context menu or use Winaero's Personalization Panel for Windows 10 app to apply the "Aero 7" or "Basic 7" theme and you are done.

How do I install a Windows 7 theme?

Choose Start > Control Panel > Appearance and Personalization > Personalization. Right-click an empty area of the desktop and choose Personalize. Select a theme in the list as a starting point for creating a new one. Choose the desired settings for Desktop Background, Window Color, Sounds, and Screen Saver.


1 Answers

The WPF Theme for Aero is located in the PresentationFramework.Aero library, so add that as a reference. Then, in your App.xaml add the following merged dictionary to override the default theme.

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

I'm pleasantly surprised that they've finally updated WPF in .NET 4.5 to support Windows 8/10 themeing (they didn't at the start of Windows 8) with the following:

  • PresentationFramework.Aero2
  • PresentationFramework.AeroLite

Haven't seen it before today, need to work with .NET 4.5 more often ;)

like image 189
Rudi Visser Avatar answered Sep 22 '22 11:09

Rudi Visser