Vista look on Non-Aero themes

the look of apps created on vista is kewl and it would be nice to have the same aero theme as default when apps are run on other themes ... the way to do this is to specify the theme at the root. So it would look something like this.

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

Bear in mind that the syntax uses a strong name URI. This is because the app fails to load the assembly from the GAC; the CLR does not support loading dlls with a partial name from the GAC.

To get the Version, Culture and PulblicKeyToken right go to \windows\assembly and check the values for the corresponding dll.

With the above syntax you can now build apps which look like the media player 11 on XP... have fun coding.


Share this post: Email | Digg! | | Reddit | Kick It | Live Favorites

Comments (10)

  1. You’ve been kicked (a good thing) – Trackback from

  2. Krys says:

    Ok… but where can we download the DLL ""

    I m under XP and cannot find this DLL 🙁

  3. You need to install .net 3.0 , which includes wpf

  4. Joy says:

    Should I set any other things to get Aero theme on my Win XP? something like setting styles? Or is this tag enough?

    Thanks in Advance

  5. the tag is sufficient 🙂

  6. david says:

    I’ve tested this, but the results is not here, I work with .NET 3 RTM, VS 2005 Team Suite and extension for WPF/WCF on Windows XP Pro SP2, I’ve test this piece of code :

    "<Window x:Class="avirer.Window1" xmlns="; xmlns:x="; Title="WPFTestThemes" Height="300" Width="300">


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



    <Button Content="Hello" HorizontalAlignment="Center" VerticalAlignment="Center" />




    and the look of vista is not here 🙁 here is a screenshot :

    The toolbar is not the same as Windows media player 11 🙁

    Can someone help me please ?



  7. Si vous avez déjà regardé Windows Media Player 11 sur Windows XP, vous avez sans doute remarquez ce look

  8. check out if the public key token matches in the GAC… if you are still facing problems post your question on the WPF forum. you will surely be answered 🙂

  9. Вводное руководство по WPF – Часть I (XAML) Вводное руководство по WPF – Часть II (Layout) Вводное руководство

  10. Вводное руководство по WPF – Часть I (XAML) Вводное руководство по WPF – Часть II (Layout) Вводное руководство

Skip to main content