Theme font settings
상속: INotifyPropertyChanged
예제 #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();
		}
예제 #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;
		}