Add Vista Look to your WPF Control on Windows XP

Vista had come with new and cool look & feel. If you want to add the Vista Aero style theme to you WPF application running on Window XP then it is very easy trick. You don’t need any third party library or tool to achieve this.

To do this all you need to do is to add following lines of xaml code into the designer of your window right after window tag:

<ResourceDictionary Source="/PresentationFramework.Aero, 
   Version=, Culture=neutral, 
   ProcessorArchitecture=MSIL;component/themes/aero.normalcolor.xaml" />

If you want to apply this look through out the application then add this to app.xaml under <Application.Resources> section.

Before Aero Theme


After Aero Theme


The limitation of this technique is that it don't change the look of container form. You can see it still looks like a normal XP form.

8 comment(S)

Visual C# Kicks on Feb 9, 2009 01:57 PM

Cool trick. Also if you add PresentationFramework.Aero as a reference you can shorten the code:

<ResourceDictionary Source="/PresentationFramework.Aero;component/themes/aero.normalcolor.xaml" />

kinal on May 21, 2011 10:45 PM

i seen itzz really amzin trickss..
bt i hav one doudt of all control style chng bt still window is xp..
so is there any trick for change window in aero theme..????

libing on Jul 21, 2011 07:02 PM

hi, By this way, it works in xp to show aero theme. but i have a question. some controls in this can not show in high contrast mode. do you know the reason ?

sri on Sep 15, 2011 04:49 AM

hi how can we change the look and feel of frame itself which has title window1 in above screenshot

mee on Sep 21, 2011 09:28 PM

same question as 'sri' can we change the appearance of the outer frame of the window taht consist of the title.

click here on Dec 19, 2011 10:17 PM

I've been reading a few posts and I really enjoy your writing. About Outdoor Wedding Bathrooms, it's so nice to see and such good information. Thanks for sharing.

Bhavan on Apr 9, 2012 07:55 AM

Thanks for your suggestion. It is a good idea.

pooja on Nov 27, 2013 03:02 AM

It's not working for me. My OS is windows xp and Xp theme is Classic style. When i am running my application it's coming in XP classic style

Leave a comment