Ejemplo n.º 1
0
 public override void OnClosed()
 {
     fontAppSettingsPageOptions.SelectedIndex = FontAndColorOptions.IndexOf(SelectedFontAndColorOptions);
     foreach (var options in FontAndColorOptions)
     {
         options.OnClosed();
     }
 }
Ejemplo n.º 2
0
 public FontAndColorOptionsVM(FontAndColorOptions options, FontCollection fontCollection)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     if (fontCollection == null)
     {
         throw new ArgumentNullException(nameof(fontCollection));
     }
     this.options   = options;
     FontCollection = fontCollection;
     fontFamilyVM   = new FontFamilyVM(FontFamily);
 }
Ejemplo n.º 3
0
 FontAndColorOptionsVM GetBestFontAndColorOptions() =>
 FontAndColorOptions.FirstOrDefault(a => a.Name == AppearanceCategoryConstants.TextEditor) ??
 FontAndColorOptions.FirstOrDefault();