Xceed Pro Themes for WPF v3.0 Documentation
Welcome to Xceed Pro Themes for WPF v3.0 / Getting Started / Adding Xceed's Themes to Your Project
In This Topic
    Adding Xceed's Themes to Your Project
    In This Topic

    The installer will copy all the necessary files into the product's installation folder (usually in [Installation Folder]\Xceed\Xceed Pro Themes for WPF v[VERSION], or a folder specific to a single-theme product).

    Step 1: Adding the Component References to Your Application

    In order to begin using Xceed's WPF theme products, the product's assemblies must be referenced in your project using the following steps.

    1. Select the "Add Reference..." option from the "Project" menu to open the "Add Reference" dialog box.
    2. Select the ".NET" tab, browse to the "Xceed Themes for WPF - Core" assembly and select it. Then browse to the assembly for each theme you wish to use in your application ("Xceed Glass Theme for WPF", "Xceed Live Explorer Theme for WPF", "Xceed Media Theme for WPF", "Xceed Metro Theme for WPF", "Xceed Office 2007 Themes for WPF", "Xceed Windows 7 Theme for WPF", and "Xceed Windows 10 Theme for WPF").
    3. Press "OK" to add the assemblies to your project's references.

    Step 2: Namespace Mapping

    Once the assemblies have been added to your project, the namespace maps that are to be used must be declared. In XAML this is done using the xmlns attribute.

    XAML
    Copy Code
    xmlns:xcpt="http://schemas.xceed.com/wpf/xaml/themes"

    The schema collection for Xceed Pro Themes for WPF holds the following namespaces:

    Namespace Description
    Xceed.Wpf.Themes.dll
    The Xceed.Wpf.Themes namespace defines the base class of the themes.
    Xceed.Wpf.Themes.Glass.dll The Xceed.Wpf.Themes.Glass namespace defines the class of the Glass theme.
    Xceed.Wpf.Themes.LiveExplorer.dll The Xceed.Wpf.Themes.LiveExplorer namespace defines the class of the Live Explorer theme.
    Xceed.Wpf.Themes.Media.dll The Xceed.Wpf.Themes.Media namespace defines the class of the Media theme.
    Xceed.Wpf.Themes.Metro.dll The Xceed.Wpf.Themes.Metro namespace defines the class of the Metro theme.
    Xceed.Wpf.Themes.Office2007.dll The Xceed.Wpf.Themes.Office2007 namespace defines the class of the Office 2007 themes.
    Xceed.Wpf.Themes.Windows7.dll The Xceed.Wpf.Themes.Windows7 namespace defines the class of the Windows 7 theme.
    Xceed.Wpf.Themes.Windows10.dll The Xceed.Wpf.Themes.Windows10 namespace defines the class of the Windows 10 theme.

    In C# or VB.NET, the using and Imports directives can be used to create aliases for the namespaces listed in the table above.

    VB.NET Copy Code

    Imports Xceed.Wpf.Themes
    Imports Xceed.Wpf.Themes.Glass
    Imports Xceed.Wpf.Themes.LiveExplorer 
    Imports Xceed.Wpf.Themes.Media
    Imports Xceed.Wpf.Themes.Metro
    Imports Xceed.Wpf.Themes.Windows7
    Imports Xceed.Wpf.Themes.Windows10
    Imports Xceed.Wpf.Themes.Office2007

    C# Copy Code

    using Xceed.Wpf.Themes;
    using Xceed.Wpf.Themes.Glass;
    using Xceed.Wpf.Themes.LiveExplorer;
    using Xceed.Wpf.Themes.Media;
    using Xceed.Wpf.Themes.Metro;
    using Xceed.Wpf.Themes.Windows7
    using Xceed.Wpf.Themes.Windows10
    using Xceed.Wpf.Themes.Office2007;

    Step 3: Licensing

    To use any of Xceed's WPF themes, you must ensure that they are properly licensed in your code. Otherwise, an exception will be thrown.

    Step 4: Applying Themes

    For information on how to take advantage of the implicit styling capabilities of this product, see Applying Themes Implicitly.

    For information on how to use explicit styling with this product, see Applying Themes Explicitly.