C# Class Orchestra.Markup.FontImage

Markup extension that can show a font as image.
Original idea comes from http://www.codeproject.com/Tips/634540/Using-Font-Icons
Inheritance: Catel.Windows.Markup.UpdatableMarkupExtension
Afficher le fichier Open project: WildGums/Orchestra

Private Properties

Свойство Type Description
CreateGlyph System.Windows.Media.ImageSource
FontImage System
ProvideDynamicValue object

Méthodes publiques

Méthode Description
FontImage ( string itemName ) : System

Initializes a new instance of the FontImage class.

GetImageSource ( ) : System.Windows.Media.ImageSource
GetRegisteredFont ( string name ) : System.Windows.Media.FontFamily
GetRegisteredFonts ( ) : IEnumerable
RegisterFont ( string name, System.Windows.Media.FontFamily fontFamily ) : void

Méthodes protégées

Méthode Description
ProvideDynamicValue ( IServiceProvider serviceProvider ) : object

Private Methods

Méthode Description
CreateGlyph ( string text, System.Windows.Media.FontFamily fontFamily, System.Windows.FontStyle fontStyle, System.Windows.FontWeight fontWeight, System.Windows.FontStretch fontStretch, System.Windows.Media.Brush foreBrush ) : System.Windows.Media.ImageSource
FontImage ( ) : System
ProvideDynamicValue ( ) : object

Method Details

FontImage() public méthode

Initializes a new instance of the FontImage class.
public FontImage ( string itemName ) : System
itemName string Name of the resource.
Résultat System

GetImageSource() public méthode

public GetImageSource ( ) : System.Windows.Media.ImageSource
Résultat System.Windows.Media.ImageSource

GetRegisteredFont() public static méthode

public static GetRegisteredFont ( string name ) : System.Windows.Media.FontFamily
name string
Résultat System.Windows.Media.FontFamily

GetRegisteredFonts() public static méthode

public static GetRegisteredFonts ( ) : IEnumerable
Résultat IEnumerable

ProvideDynamicValue() protected méthode

protected ProvideDynamicValue ( IServiceProvider serviceProvider ) : object
serviceProvider IServiceProvider
Résultat object

RegisterFont() public static méthode

public static RegisterFont ( string name, System.Windows.Media.FontFamily fontFamily ) : void
name string
fontFamily System.Windows.Media.FontFamily
Résultat void