Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: Dynamically change theme of PropertyGrid

$
0
0
Hi,

If you want to use 1 of the predefined themes(Office2007 Blue, Office2007 Black, Office2007 Silver, Metro Dark, Metro Light) for any controls of the toolkit, you need to load the corresponding ressourceDictionary like this :
xmlns:office="clr-namespace:Xceed.Wpf.Toolkit.Themes.Office2007;assembly=Xceed.Wpf.Toolkit.Themes.Office2007"

<Window.Resources>
      <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
            <office:Office2007BlueResourceDictionary />
         </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

or in Code-behind :
this.Resources.MergedDictionaries.Add( new Xceed.Wpf.Toolkit.Themes.Office2007.Office2007BlueResourceDictionary() );
And all your Toolkit controls will be themed!

Please note that those themes are only available in the Plus Version of the Toolkit (http://xceed.com/Extended_WPF_Toolkit_Features.html).
For AvalonDock, there are 3 themes available in the Community Edition of the Toolkit (Metro, Aero and VS2010). The Plus version of the Toolkit includes those 3 themes + (Office2007 Blue, Office2007 Black, Office2007 Silver, Metro Dark, Metro Light).

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>