public TextAppearanceCategory(TextAppearanceCategoryDefinition def, ThemeFontSettings themeFontSettings) { if (def == null) throw new ArgumentNullException(nameof(def)); if (themeFontSettings == null) throw new ArgumentNullException(nameof(themeFontSettings)); this.def = def; ThemeFontSettings = themeFontSettings; themeFontSettings.PropertyChanged += ThemeFontSettings_PropertyChanged; UpdateActive(); }
public FontSettingsImpl(ThemeFontSettings owner, Guid themeGuid, FontFamily fontFamily, double fontSize) { if (owner == null) throw new ArgumentNullException(nameof(owner)); if (fontFamily == null) throw new ArgumentNullException(nameof(fontFamily)); ThemeFontSettings = owner; ThemeGuid = themeGuid; this.fontFamily = fontFamily; FontSize = fontSize; }