Class ThemeOptions
[Display(Name = "主题设置", GroupName = "显示设置", Description = "登录页面设置的信息")]
public class ThemeOptions : IocOptionInstance<ThemeOptions>, INotifyPropertyChanged, IDisplayBindable, IIconable, IDable, IDescriptionable, ISettable, INameable, IOrderable, IGroupable, ISaveable, IDefaultable, IClearable, IOptions<ThemeOptions>, ILoginedSplashLoad, ISplashLoad, ILoadable, IThemeOptions, IIconFontFamilysOptions, IColorThemeOptions
- Inheritance
-
ThemeOptions
- Implements
- Inherited Members
- Extension Methods
Constructors
ThemeOptions()
public ThemeOptions()
Properties
BackgroundResource
[JsonIgnore]
[PropertyNameSourcePropertyItem(typeof(ComboBoxPropertyItem), "BackgroundResources")]
[Display(Name = "背景配色")]
public IBackgroundResource BackgroundResource { get; set; }
Property Value
BackgroundResourceSelectedIndex
[Browsable(false)]
public int BackgroundResourceSelectedIndex { get; set; }
Property Value
BackgroundResources
[JsonIgnore]
[Browsable(false)]
public List<IBackgroundResource> BackgroundResources { get; }
Property Value
ColorResource
[JsonIgnore]
[PropertyNameSourcePropertyItem(typeof(ComboBoxPropertyItem), "ColorResources")]
[Display(Name = "配色")]
public IColorResource ColorResource { get; set; }
Property Value
ColorResourceSelectedIndex
[Browsable(false)]
public int ColorResourceSelectedIndex { get; set; }
Property Value
ColorResources
[JsonIgnore]
[Browsable(false)]
public List<IColorResource> ColorResources { get; }
Property Value
FontFamily
[PropertyNameSourcePropertyItem(typeof(ComboBoxPropertyItem), "FontFamilys")]
[Display(Name = "字体")]
[TypeConverter(typeof(FontFamilyConverter))]
public FontFamily FontFamily { get; set; }
Property Value
FontFamilys
[JsonIgnore]
[Browsable(false)]
public List<FontFamily> FontFamilys { get; }
Property Value
FontSize
[Display(Name = "字号")]
public FontSizeThemeType FontSize { get; set; }
Property Value
IconFontFamily
[PropertyNameSourcePropertyItem(typeof(ComboBoxPropertyItem), "IconFontFamilys")]
[Display(Name = "图标字体")]
[TypeConverter(typeof(FontFamilyConverter))]
public FontFamily IconFontFamily { get; set; }
Property Value
IconFontFamilys
[JsonIgnore]
[Browsable(false)]
public List<FontFamily> IconFontFamilys { get; }
Property Value
IsDark
[Display(Name = "切换明暗主题")]
public bool IsDark { get; set; }
Property Value
Layout
[Display(Name = "布局")]
public LayoutThemeType Layout { get; set; }
Property Value
RefreshThemeCommand
[JsonIgnore]
public RelayCommand RefreshThemeCommand { get; }
Property Value
Methods
GetDefaultFolder()
protected override string GetDefaultFolder()
Returns
Load(out string)
public override bool Load(out string message)
Parameters
message
string
Returns
LoadDefault()
加载默认值。
public override void LoadDefault()
OnBackgroundResourceValueChanged(PropertyInfo, IBackgroundResource, IBackgroundResource)
public void OnBackgroundResourceValueChanged(PropertyInfo property, IBackgroundResource o, IBackgroundResource n)
Parameters
property
PropertyInfoo
IBackgroundResourcen
IBackgroundResource
OnColorResourceValueChanged(PropertyInfo, IColorResource, IColorResource)
public void OnColorResourceValueChanged(PropertyInfo property, IColorResource o, IColorResource n)
Parameters
property
PropertyInfoo
IColorResourcen
IColorResource
OnFontFamilyValueChanged(PropertyInfo, FontFamily, FontFamily)
public void OnFontFamilyValueChanged(PropertyInfo property, FontFamily o, FontFamily n)
Parameters
property
PropertyInfoo
FontFamilyn
FontFamily
OnFontSizeValueChanged(PropertyInfo, FontSizeThemeType, FontSizeThemeType)
public void OnFontSizeValueChanged(PropertyInfo property, FontSizeThemeType o, FontSizeThemeType n)
Parameters
property
PropertyInfoo
FontSizeThemeTypen
FontSizeThemeType
OnIconFontFamilyValueChanged(PropertyInfo, FontFamily, FontFamily)
public void OnIconFontFamilyValueChanged(PropertyInfo property, FontFamily o, FontFamily n)
Parameters
property
PropertyInfoo
FontFamilyn
FontFamily
OnLayoutValueChanged(PropertyInfo, LayoutThemeType, LayoutThemeType)
public void OnLayoutValueChanged(PropertyInfo property, LayoutThemeType o, LayoutThemeType n)
Parameters
property
PropertyInfoo
LayoutThemeTypen
LayoutThemeType
RefreshBrushResourceDictionary()
public void RefreshBrushResourceDictionary()
Save(out string)
public override bool Save(out string message)
Parameters
message
string