Exemple #1
0
 public static TextDecorationCollection GetTextDecorations(this ResourceDictionary resource)
 {
     return(resource.Get <TextDecorationCollection>(Constants.EditorFormatKeys.TextDecorations));
 }
Exemple #2
0
 public static WpfBrush GetBrush(this ResourceDictionary resource, string resourceId = EditorFormatDefinition.ForegroundBrushId)
 {
     return(resource.Get <WpfBrush>(resourceId));
 }
Exemple #3
0
 public static WpfBrush GetBackgroundBrush(this ResourceDictionary resource)
 {
     return(resource.Get <WpfBrush>(EditorFormatDefinition.BackgroundBrushId));
 }
Exemple #4
0
 public static Typeface GetTypeface(this ResourceDictionary resource)
 {
     return(resource.Get <Typeface>(Constants.EditorFormatKeys.Typeface));
 }