Class MaterialDarkThemeSettings
Represents a class that holds the respective theme color and common key values for customization
Inheritance
System.Object
MaterialDarkThemeSettings
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()
Assembly: Syncfusion.Themes.MaterialDark.WPF.dll
Syntax
public class MaterialDarkThemeSettings : IThemeSetting
Constructors
MaterialDarkThemeSettings()
Constructor to create an instance of MaterialDarkThemeSettings.
Declaration
public MaterialDarkThemeSettings()
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
MaterialDarkThemeSettings materialDarkThemeSettings = new MaterialDarkThemeSettings();
materialDarkThemeSettings.Body AltFontSize = 10;
SfSkinManager.RegisterThemeSettings("MaterialDark", materialDarkThemeSettings);
BodyFontSize
Gets or sets the font size of content area of control in selected theme
Declaration
public double BodyFontSize { get; set; }
Property Value
Examples
MaterialDarkThemeSettings materialDarkThemeSettings = new MaterialDarkThemeSettings();
materialDarkThemeSettings.BodyFontSize = 12;
SfSkinManager.RegisterThemeSettings("MaterialDark", materialDarkThemeSettings);
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
MaterialDarkThemeSettings materialDarkThemeSettings = new MaterialDarkThemeSettings();
materialDarkThemeSettings.FontFamily = new FontFamily("Callibri");
SfSkinManager.RegisterThemeSettings("MaterialDark", materialDarkThemeSettings);
Gets or sets the font size of header related areas of control in selected theme
Declaration
public double HeaderFontSize { get; set; }
Property Value
MaterialDarkThemeSettings materialDarkThemeSettings = new MaterialDarkThemeSettings();
materialDarkThemeSettings.HeaderFontSize = 16;
SfSkinManager.RegisterThemeSettings("MaterialDark", materialDarkThemeSettings);
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
MaterialDarkThemeSettings themeSettings = new MaterialDarkThemeSettings();
themeSettings.Palette = MaterialPalette.Red;
SfSkinManager.RegisterThemeSettings("MaterialDark", 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
MaterialDarkThemeSettings materialDarkThemeSettings = new MaterialDarkThemeSettings();
materialDarkThemeSettings.PrimaryBackground = Brushes.Red;
SfSkinManager.RegisterThemeSettings("MaterialDark", materialDarkThemeSettings);
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
MaterialDarkThemeSettings materialDarkThemeSettings = new MaterialDarkThemeSettings();
materialDarkThemeSettings.PrimaryForeground = Brushes.AntiqueWhite;
SfSkinManager.RegisterThemeSettings("MaterialDark", materialDarkThemeSettings);
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
MaterialDarkThemeSettings materialDarkThemeSettings = new MaterialDarkThemeSettings();
materialDarkThemeSettings.SubHeaderFontSize = 14;
SfSkinManager.RegisterThemeSettings("MaterialDark", materialDarkThemeSettings);
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
MaterialDarkThemeSettings materialDarkThemeSettings = new MaterialDarkThemeSettings();
materialDarkThemeSettings.SubTitleFontSize = 12;
SfSkinManager.RegisterThemeSettings("MaterialDark", materialDarkThemeSettings);
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
MaterialDarkThemeSettings materialDarkThemeSettings = new MaterialDarkThemeSettings();
materialDarkThemeSettings.TitleFontSize = 14;
SfSkinManager.RegisterThemeSettings("MaterialDark", materialDarkThemeSettings);