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

Updated Wiki: Themes Usage Instructions

$
0
0

Themes Usage Instructions

Windows Themes

  • Windows 7
  • Windows 8
  • Windows 10
The Windows 7 and Windows 8 themes are applied by default, depending on the operating system.

To use the Windows 10 theme, you need the following references:
  • Xceed.Wpf.Themes
  • Xceed.Wpf.Themes.Windows10 (core controls)
  • Xceed.Wpf.Toolkit.Themes.Windows10 (toolkit controls)
Adding the theme in code-behind in your main page:

// Core Controls
this.Resources.MergedDictionaries.Add( new Xceed.Wpf.Themes.Windows10.Windows10ResourceDictionary() );

// Toolkit Controls
this.Resources.MergedDictionaries.Add( new Xceed.Wpf.Toolkit.Themes.Windows10.Windows10ResourceDictionary() );

Adding the theme in XAML in your main page:

xmlns:xcw="clr-namespace:Xceed.Wpf.Themes.Windows10;assembly=Xceed.Wpf.Themes.Windows10"
xmlns:xctw="clr-namespace:Xceed.Wpf.Toolkit.Themes.Windows10;assembly=Xceed.Wpf.Toolkit.Themes.Windows10"
 <Window.Resources>
      <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
            <!-- Core Controls -->
            <xcw:Windows10ResourceDictionary />
            <!-- Toolkit Controls -->
            <xctw:Windows10ResourceDictionary />
         </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
</Window.Resources>

Metro Themes

  • Metro Light - Plus Edition
  • Metro Dark - Plus Edition
To use the Metro themes, you need the following references:
  • Xceed.Wpf.Themes
  • Xceed.Wpf.Themes.Metro (core controls)
  • Xceed.Wpf.Toolkit.Themes.Metro (toolkit controls)
Adding the theme in code-behind in your main page:

// Core Controls
this.Resources.MergedDictionaries.Add( new Xceed.Wpf.Themes.Metro.MetroDarkThemeResourceDictionary( new SolidColorBrush( Colors.Green ) ) );

// Toolkit Controls
this.Resources.MergedDictionaries.Add( new Xceed.Wpf.Toolkit.Themes.Metro.ToolkitMetroDarkThemeResourceDictionary( new SolidColorBrush( Colors.Green ) ) );

Adding the theme in XAML in your main page:

xmlns:xcm="clr-namespace:Xceed.Wpf.Themes.Metro;assembly=Xceed.Wpf.Themes.Metro"
xmlns:xctm="clr-namespace:Xceed.Wpf.Toolkit.Themes.Metro;assembly=Xceed.Wpf.Toolkit.Themes.Metro"
<Window.Resources>
      <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
            <!-- Core Controls -->
            <xcm:MetroDarkThemeResourceDictionary AccentColor="Green" />
            <!-- Toolkit Controls -->
            <xctm:ToolkitMetroDarkThemeResourceDictionary AccentColor="Green" />
         </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
</Window.Resources>

Office2007 Themes

  • Office2007 Blue - Plus Edition
  • Office2007 Black - Plus Edition
  • Office2007 Silver - Plus Edition
To use the Office2007 themes, you need the following references:
  • Xceed.Wpf.Themes
  • Xceed.Wpf.Themes.Office2007 (core controls)
  • Xceed.Wpf.Toolkit.Themes.Office2007 (toolkit controls)
Adding the theme in code-behind in your main page:

// Core Controls
this.Resources.MergedDictionaries.Add( new Xceed.Wpf.Themes.Office2007.Office2007BlueResourceDictionary() );

// Toolkit Controls
this.Resources.MergedDictionaries.Add( new Xceed.Wpf.Toolkit.Themes.Office2007.Office2007BlueResourceDictionary() );

Adding the theme in XAML in your main page:

xmlns:xco="clr-namespace:Xceed.Wpf.Themes.Office2007;assembly=Xceed.Wpf.Themes.Office2007"
xmlns:xcto="clr-namespace:Xceed.Wpf.Toolkit.Themes.Office2007;assembly=Xceed.Wpf.Toolkit.Themes.Office2007"
 <Window.Resources>
      <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
            <!-- Core Controls -->
            <xco:Office2007BlueResourceDictionary />
            <!-- Toolkit Controls -->
            <xcto:Office2007BlueResourceDictionary />
         </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
</Window.Resources>

---

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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