Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.Themes.MaterialDesignColors Assembly / Xceed.Wpf.Themes.MaterialDesignColors Namespace / MaterialDesignColor Enumeration
Example Example


In This Topic
    MaterialDesignColor Enumeration
    In This Topic
    The possible values for the Accent and Primary color of the MaterialDesign theme.
    Syntax
    'Declaration
     
    Public Enum MaterialDesignColor 
       Inherits System.Enum
    'Usage
     
    Dim instance As MaterialDesignColor
    public enum MaterialDesignColor : System.Enum 
    Members
    MemberDescription
    Amber 
    Blue 
    Cyan 
    DarkRed 
    DeepOrange 
    DeepPurple 
    Green 
    Indigo 
    LightBlue 
    LightGreen 
    Lime 
    Orange 
    Pink 
    Purple 
    Red 
    Teal 
    Yellow 
    Example
    <Application x:Class="WpfApp65.App"
    
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:xcmd="http://schemas.xceed.com/wpf/xaml/material/design/themes"
                 xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
                 xmlns:xctt="http://schemas.xceed.com/wpf/xaml/toolkit/themes"
                 xmlns:xcad="http://schemas.xceed.com/wpf/xaml/avalondock"
                 xmlns:xcat="http://schemas.xceed.com/wpf/xaml/avalondock/themes"
                 xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"
                 xmlns:xcdt="http://schemas.xceed.com/wpf/xaml/datagrid/themes"
                 xmlns:xclb="http://schemas.xceed.com/wpf/xaml/listbox"
                 xmlns:xclt="http://schemas.xceed.com/wpf/xaml/listbox/themes"
                 StartupUri="MainWindow.xaml">
      <Application.Resources>
        <ResourceDictionary>
          <ResourceDictionary.MergedDictionaries>
            <!-- Core Controls for Material Design -->
            <xcmd:MaterialDesignResourceDictionary IsDark="True"
                                                   PrimaryColor="DeepOrange"
                                                   AccentColor="DeepOrange" />
            <!-- Toolkit Controls for Material Design -->
            <xctt:MaterialDesignResourceDictionary />
            <!-- AvalonDock for Material design -->
            <xcat:MaterialDesignResourceDictionary />
             <!-- DataGrid for Material design -->
            <xcdt:MaterialDesignResourceDictionary />
             <!-- ListBox for Material design -->
            <xclt:MaterialDesignResourceDictionary />
          </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
      </Application.Resources>
    </Application>
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             Xceed.Wpf.Themes.MaterialDesignColors.MaterialDesignColor

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also