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(); }
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; }