menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MaterialLightThemeSettings - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MaterialLightThemeSettings

    Represents a class that holds the respective theme color and common key values for customization

    Inheritance
    System.Object
    MaterialLightThemeSettings
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Themes.MaterialLight.WPF
    Assembly: Syncfusion.Themes.MaterialLight.WPF.dll
    Syntax
    public class MaterialLightThemeSettings : IThemeSetting

    Constructors

    MaterialLightThemeSettings()

    Constructor to create an instance of MaterialLightThemeSettings.

    Declaration
    public MaterialLightThemeSettings()

    Properties

    BodyAltFontSize

    Gets or sets the alternate font size of content area of control in selected theme

    Declaration
    public double BodyAltFontSize { get; set; }
    Property Value
    Type
    System.Double
    Examples
    MaterialLightThemeSettings materialLightThemeSettings = new MaterialLightThemeSettings();
    materialLightThemeSettings.Body AltFontSize = 10;
    SfSkinManager.RegisterThemeSettings("MaterialLight", materialLightThemeSettings);

    BodyFontSize

    Gets or sets the font size of content area of control in selected theme

    Declaration
    public double BodyFontSize { get; set; }
    Property Value
    Type
    System.Double
    Examples
    MaterialLightThemeSettings materialLightThemeSettings = new MaterialLightThemeSettings();
    materialLightThemeSettings.BodyFontSize = 12;
    SfSkinManager.RegisterThemeSettings("MaterialLight", materialLightThemeSettings);

    FontFamily

    Gets or sets the font family of text in control for selected theme

    Declaration
    public FontFamily FontFamily { get; set; }
    Property Value
    Type
    System.Windows.Media.FontFamily
    Examples
    MaterialLightThemeSettings materialLightThemeSettings = new MaterialLightThemeSettings();
    materialLightThemeSettings.FontFamily = new FontFamily("Callibri");
    SfSkinManager.RegisterThemeSettings("MaterialLight", materialLightThemeSettings);

    HeaderFontSize

    Gets or sets the font size of header related areas of control in selected theme

    Declaration
    public double HeaderFontSize { get; set; }
    Property Value
    Type
    System.Double
    Examples
    MaterialLightThemeSettings materialLightThemeSettings = new MaterialLightThemeSettings();
    materialLightThemeSettings.HeaderFontSize = 16;
    SfSkinManager.RegisterThemeSettings("MaterialLight", materialLightThemeSettings);

    Palette

    Gets or sets the palette primary colors to be set for specific theme.

    Declaration
    public MaterialPalette Palette { get; set; }
    Property Value
    Type Description
    MaterialPalette

    One of the Palette enumeration that specifies the palette to be chosen.

    The default value is Default.

    Fields:

    EnumerationDescription.
    DefaultThe Default palette primary colors will be applied for specific theme.
    RedThe Red palette primary colors will be applied for specific theme.
    PinkThe Pink palette primary colors will be applied for specific theme.
    PurpleThe Purple palette primary colors will be applied for specific theme.
    DeepPurpleThe DeepPurple palette primary colors will be applied for specific theme.
    IndigoThe Indigo palette primary colors will be applied for specific theme.
    BlueThe Blue palette primary colors will be applied for specific theme.
    LightBlueThe LightBlue palette primary colors will be applied for specific theme.
    CyanThe Cyan palette primary colors will be applied for specific theme.
    GreenThe Green palette primary colors will be applied for specific theme.
    OrangeThe Orange palette primary colors will be applied for specific theme.
    Remarks

    Applicable only for ThemeStudio specific themes.

    Examples
    MaterialLightThemeSettings themeSettings = new MaterialLightThemeSettings();
    themeSettings.Palette = MaterialPalette.Red;
    SfSkinManager.RegisterThemeSettings("MaterialLight", themeSettings);

    PrimaryBackground

    Gets or sets the primary background color of content area of control in selected theme

    Declaration
    public Brush PrimaryBackground { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush
    Examples
    MaterialLightThemeSettings materialLightThemeSettings = new MaterialLightThemeSettings();
    materialLightThemeSettings.PrimaryBackground = Brushes.Red;
    SfSkinManager.RegisterThemeSettings("MaterialLight", materialLightThemeSettings);

    PrimaryBackgroundOpacity

    Declaration
    public Brush PrimaryBackgroundOpacity { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    PrimaryBackgroundOpacity2

    Declaration
    public Brush PrimaryBackgroundOpacity2 { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    PrimaryBackgroundOpacity3

    Declaration
    public Brush PrimaryBackgroundOpacity3 { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    PrimaryColorForeground

    Declaration
    public Brush PrimaryColorForeground { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    PrimaryDark

    Declaration
    public Brush PrimaryDark { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    PrimaryDarken

    Declaration
    public Brush PrimaryDarken { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    PrimaryDarkest

    Declaration
    public Brush PrimaryDarkest { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    PrimaryForeground

    Gets or sets the primary foreground color of content area of control in selected theme

    Declaration
    public Brush PrimaryForeground { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush
    Examples
    MaterialLightThemeSettings materialLightThemeSettings = new MaterialLightThemeSettings();
    materialLightThemeSettings.PrimaryForeground = Brushes.AntiqueWhite;
    SfSkinManager.RegisterThemeSettings("MaterialLight", materialLightThemeSettings);

    PrimaryLight

    Declaration
    public Brush PrimaryLight { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    PrimaryLighten

    Declaration
    public Brush PrimaryLighten { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    PrimaryLightest

    Declaration
    public Brush PrimaryLightest { get; set; }
    Property Value
    Type
    System.Windows.Media.Brush

    SubHeaderFontSize

    Gets or sets the font size of sub header related areas of control in selected theme

    Declaration
    public double SubHeaderFontSize { get; set; }
    Property Value
    Type
    System.Double
    Examples
    MaterialLightThemeSettings materialLightThemeSettings = new MaterialLightThemeSettings();
    materialLightThemeSettings.SubHeaderFontSize = 14;
    SfSkinManager.RegisterThemeSettings("MaterialLight", materialLightThemeSettings);

    SubTitleFontSize

    Gets or sets the font size of sub title related areas of control in selected theme

    Declaration
    public double SubTitleFontSize { get; set; }
    Property Value
    Type
    System.Double
    Examples
    MaterialLightThemeSettings materialLightThemeSettings = new MaterialLightThemeSettings();
    materialLightThemeSettings.SubTitleFontSize = 12;
    SfSkinManager.RegisterThemeSettings("MaterialLight", materialLightThemeSettings);

    TitleFontSize

    Gets or sets the font size of title related areas of control in selected theme

    Declaration
    public double TitleFontSize { get; set; }
    Property Value
    Type
    System.Double
    Examples
    MaterialLightThemeSettings materialLightThemeSettings = new MaterialLightThemeSettings();
    materialLightThemeSettings.TitleFontSize = 14;
    SfSkinManager.RegisterThemeSettings("MaterialLight", materialLightThemeSettings);
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved