C# 클래스 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
상속: Catel.Windows.Markup.UpdatableMarkupExtension
파일 보기 프로젝트 열기: WildGums/Orchestra

Private Properties

프로퍼티 타입 설명
CreateGlyph System.Windows.Media.ImageSource
FontImage System
ProvideDynamicValue object

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
ProvideDynamicValue ( IServiceProvider serviceProvider ) : object

비공개 메소드들

메소드 설명
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

메소드 상세

FontImage() 공개 메소드

Initializes a new instance of the FontImage class.
public FontImage ( string itemName ) : System
itemName string Name of the resource.
리턴 System

GetImageSource() 공개 메소드

public GetImageSource ( ) : System.Windows.Media.ImageSource
리턴 System.Windows.Media.ImageSource

GetRegisteredFont() 공개 정적인 메소드

public static GetRegisteredFont ( string name ) : System.Windows.Media.FontFamily
name string
리턴 System.Windows.Media.FontFamily

GetRegisteredFonts() 공개 정적인 메소드

public static GetRegisteredFonts ( ) : IEnumerable
리턴 IEnumerable

ProvideDynamicValue() 보호된 메소드

protected ProvideDynamicValue ( IServiceProvider serviceProvider ) : object
serviceProvider IServiceProvider
리턴 object

RegisterFont() 공개 정적인 메소드

public static RegisterFont ( string name, System.Windows.Media.FontFamily fontFamily ) : void
name string
fontFamily System.Windows.Media.FontFamily
리턴 void