Пример #1
0
 public TextAppearanceCategory(TextAppearanceCategoryDefinition def, ThemeFontSettings themeFontSettings)
 {
     this.def          = def ?? throw new ArgumentNullException(nameof(def));
     ThemeFontSettings = themeFontSettings ?? throw new ArgumentNullException(nameof(themeFontSettings));
     themeFontSettings.PropertyChanged += ThemeFontSettings_PropertyChanged;
     UpdateActive();
 }
Пример #2
0
 public FontSettingsImpl(ThemeFontSettings owner, Guid themeGuid, FontFamily fontFamily, double fontSize)
 {
     ThemeFontSettings = owner ?? throw new ArgumentNullException(nameof(owner));
     ThemeGuid         = themeGuid;
     this.fontFamily   = fontFamily ?? throw new ArgumentNullException(nameof(fontFamily));
     FontSize          = fontSize;
 }