示例#1
0
 static void OpenInNewWindow(object s, RoutedEventArgs args)
 {
     if (s is FrameworkElement f && f.Tag is InstalledFont fnt)
     {
         _ = FontMapView.CreateNewViewForFontAsync(fnt, null, f.DataContext as CharacterRenderingOptions);
     }
 }
 static void OpenInNewWindow(object s, RoutedEventArgs args)
 {
     if (s is FrameworkElement f && f.Tag is InstalledFont fnt)
     {
         _ = FontMapView.CreateNewViewForFontAsync(fnt);
     }
 }