C# 클래스 eCollegeWP7.Views.Controls.DynamicTextBlock

A simple text control that truncates the text to ellipses when there is insufficient room to display all of the text.
상속: System.Windows.Controls.ContentControl
파일 보기 프로젝트 열기: PearsonLearningStudio/mobile2-windows7

공개 프로퍼티들

프로퍼티 타입 설명
LineHeightProperty System.Windows.DependencyProperty
LineStackingStrategyProperty System.Windows.DependencyProperty
TextProperty System.Windows.DependencyProperty
TextStyleProperty System.Windows.DependencyProperty
TextWrappingProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
DynamicTextBlock ( ) : System

Initializes a new instance of the DynamicTextBlock class

보호된 메소드들

메소드 설명
GetDesiredText ( string sourceText, int min, int max, Size availableSize, Size unboundSize, bool wrapping ) : string
MeasureOverride ( Size availableSize ) : Size

Handles the measure part of the measure and arrange layout process. During this process we measure the textBlock that we've created as content with increasingly smaller amounts of text until we find text that fits.

OnLineHeightChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnLineStackingStrategyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnTextChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnTextWrappingChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
ReduceText ( string text ) : string

Reduces the length of the text. Derived classes can override this to use different techniques for reducing the text length.

비공개 메소드들

메소드 설명
OnLineHeightChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnLineStackingStrategyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnTextChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnTextStyleChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnTextWrappingChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

메소드 상세

DynamicTextBlock() 공개 메소드

Initializes a new instance of the DynamicTextBlock class
public DynamicTextBlock ( ) : System
리턴 System

GetDesiredText() 보호된 메소드

protected GetDesiredText ( string sourceText, int min, int max, Size availableSize, Size unboundSize, bool wrapping ) : string
sourceText string
min int
max int
availableSize System.Windows.Size
unboundSize System.Windows.Size
wrapping bool
리턴 string

MeasureOverride() 보호된 메소드

Handles the measure part of the measure and arrange layout process. During this process we measure the textBlock that we've created as content with increasingly smaller amounts of text until we find text that fits.
protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size the available size
리턴 System.Windows.Size

OnLineHeightChanged() 보호된 메소드

protected OnLineHeightChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
리턴 void

OnLineStackingStrategyChanged() 보호된 메소드

protected OnLineStackingStrategyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
리턴 void

OnTextChanged() 보호된 메소드

protected OnTextChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
리턴 void

OnTextWrappingChanged() 보호된 메소드

protected OnTextWrappingChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs
리턴 void

ReduceText() 보호된 메소드

Reduces the length of the text. Derived classes can override this to use different techniques for reducing the text length.
protected ReduceText ( string text ) : string
text string the original text
리턴 string

프로퍼티 상세

LineHeightProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows LineHeightProperty
리턴 System.Windows.DependencyProperty

LineStackingStrategyProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows LineStackingStrategyProperty
리턴 System.Windows.DependencyProperty

TextProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows TextProperty
리턴 System.Windows.DependencyProperty

TextStyleProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows TextStyleProperty
리턴 System.Windows.DependencyProperty

TextWrappingProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows TextWrappingProperty
리턴 System.Windows.DependencyProperty