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

Updated Wiki: Documentation

$
0
0

Controls

Themes

Windows

  • Windows 7
  • Windows 8
  • Windows 10

The Windows themes are applied by default, depending on the operating system.

Metro

  • 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 (for core controls)
  • Xceed.Wpf.Toolkit.Themes.Metro (for 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:xctm="clr-namespace:Xceed.Wpf.Toolkit.Themes.Metro;assembly=Xceed.Wpf.Toolkit.Themes.Metro"
xmlns:xcm="clr-namespace:Xceed.Wpf.Themes.Metro;assembly=Xceed.Wpf.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

  • 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 (for core controls)
  • Xceed.Wpf.Toolkit.Themes.Office2007 (for 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:xcto="clr-namespace:Xceed.Wpf.Toolkit.Themes.Office2007;assembly=Xceed.Wpf.Toolkit.Themes.Office2007"
xmlns:xco="clr-namespace:Xceed.Wpf.Themes.Office2007;assembly=Xceed.Wpf.Themes.Office2007"
 <Window.Resources>
      <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
            <!-- Core Controls -->
            <xco:Office2007BlueResourceDictionary />
            <!-- Toolkit Controls -->
            <xcto:Office2007BlueResourceDictionary />
         </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
</Window.Resources>

Installation and Usage Instructions

Please note: The Extended WPF Toolkit is dependent on .NET Framework 4.0. You must install .NET Framework 4.0 in order to use any features in the Toolkit.

Instructions for using the Extended WPF Toolkit binaries:

  1. Install .NET Framework 4.0.
  2. Download the ExtendedWPFToolkit_Binaries
  3. Unblock the ZIP file.
    1. Right-click ExtendedWPFToolkit_Binaries.zip -> Properties -> Unblock
  4. Unzip the ExtendedWPFToolkit_Binaries.zip
  5. Reference the binaries in your project:
    1. Reference WPFToolkit.Extended.dll in your project (Xceed.Wpf.DataGrid.dll for the datagrid control)
    2. Add a using statement ("using Xceed.Wpf.Toolkit;" for most of the controls, "using Xceed.Wpf.DataGrid;" for the datagrid control) to the top of .cs files
    3. Add a new xmlns (xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" for most of the controls, xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid" for the datagrid control) to the top of XAML files
    4. Remember to use the namespace prefix (in the above example, <xctk: ...> or <xcdg: ...>) in the body of your XAML

Installation using NuGet

  1. Install NuGet (can be downloaded for this link).
  2. Open your Visual Studio.
  3. Open your solution/project.
  4. Open Tools menu, select Library Package Manager and select Package Manager Console
  5. Run the following command Install-Package Extended.Wpf.Toolkit
    1. Add a using statement ("using Xceed.Wpf.Toolkit;" for most of the controls, "using Xceed.Wpf.DataGrid;" for the datagrid control) to the top of .cs files
    2. Add a new xmlns (xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" for most of the controls, xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid" for the datagrid control) to the top of XAML files
    3. Remember to use the namespace prefix (in the above example, <xctk: ...> or <xcdg: ...>) in the body of your XAML



Viewing all articles
Browse latest Browse all 4964

Trending Articles



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