Theme font settings
Inheritance: INotifyPropertyChanged
Exemplo n.º 1
0
		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();
		}
Exemplo n.º 2
0
		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;
		}