Class MaterialLightThemeSettings
Represents a class that holds the respective theme color and common key values for customization
Inheritance
System.Object
MaterialLightThemeSettings
Assembly: Syncfusion.Themes.MaterialLight.WPF.dll
Syntax
public class MaterialLightThemeSettings : Object, 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
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
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);
Gets or sets the font size of header related areas of control in selected theme
Declaration
public double HeaderFontSize { get; set; }
Property Value
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:
Enumeration | Description. |
---|
Default | The Default palette primary colors will be applied for specific theme. | Red | The Red palette primary colors will be applied for specific theme. | Pink | The Pink palette primary colors will be applied for specific theme. | Purple | The Purple palette primary colors will be applied for specific theme. | DeepPurple | The DeepPurple palette primary colors will be applied for specific theme. | Indigo | The Indigo palette primary colors will be applied for specific theme. | Blue | The Blue palette primary colors will be applied for specific theme. | LightBlue | The LightBlue palette primary colors will be applied for specific theme. | Cyan | The Cyan palette primary colors will be applied for specific theme. | Green | The Green palette primary colors will be applied for specific theme. | Orange | The Orange palette primary colors will be applied for specific theme. |
|
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 |
Gets or sets the font size of sub header related areas of control in selected theme
Declaration
public double SubHeaderFontSize { get; set; }
Property Value
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
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
Examples
MaterialLightThemeSettings materialLightThemeSettings = new MaterialLightThemeSettings();
materialLightThemeSettings.TitleFontSize = 14;
SfSkinManager.RegisterThemeSettings("MaterialLight", materialLightThemeSettings);