Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi everyone,

I am creating app on WPF and c#, this is going to be installed on some windows server with classic theme. I want the look n feel of app to be same as the windows 7 using aero theme (all controls, the aero glass and the border). How can i do this, thinking that the aero theme has to be added in app?
Posted

You have to add a reference to "PresentationFramework.Aero" in your project, and then add this to your App.Xaml file:

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


You could have easily found this on google.
 
Share this answer
 
v2
Comments
sairam.bhat 10-Mar-11 0:49am    
good answer air
the above code only works with controls even if the presentation framework is added as reference. How can i get aero glass and border in classic theme?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900