[Root] / Xceed.Wpf.Themes.MaterialDesignColors Assembly / Xceed.Wpf.Themes.MaterialDesignColors Namespace / MaterialDesignColor Enumeration
ExampleExample


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
    MemberValueDescription
    Amber0 
    Blue1 
    Cyan2 
    DarkRed3 
    DeepOrange4 
    DeepPurple5 
    Green6 
    Indigo7 
    LightBlue8 
    LightGreen9 
    Lime10 
    Orange11 
    Pink12 
    Purple13 
    Red14 
    Teal15 
    Yellow16 
    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

    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also