Property | Type | Description | |
---|---|---|---|
LineHeightProperty | |||
LineStackingStrategyProperty | |||
TextProperty | |||
TextStyleProperty | |||
TextWrappingProperty |
Method | Description | |
---|---|---|
DynamicTextBlock ( ) : System |
Initializes a new instance of the DynamicTextBlock class
|
Method | Description | |
---|---|---|
GetDesiredText ( string sourceText, int min, int max, |
||
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.
|
|
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.
|
Method | Description | |
---|---|---|
OnLineHeightChanged ( |
||
OnLineStackingStrategyChanged ( |
||
OnTextChanged ( |
||
OnTextStyleChanged ( |
||
OnTextWrappingChanged ( |
protected GetDesiredText ( string sourceText, int min, int max, |
||
sourceText | string | |
min | int | |
max | int | |
availableSize | ||
unboundSize | ||
wrapping | bool | |
return | string |
protected MeasureOverride ( |
||
availableSize | the available size | |
return |
protected OnLineHeightChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void | ||
e | System.Windows.DependencyPropertyChangedEventArgs | |
return | void |
protected OnLineStackingStrategyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void | ||
e | System.Windows.DependencyPropertyChangedEventArgs | |
return | void |
protected OnTextChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void | ||
e | System.Windows.DependencyPropertyChangedEventArgs | |
return | void |
protected OnTextWrappingChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void | ||
e | System.Windows.DependencyPropertyChangedEventArgs | |
return | void |
protected ReduceText ( string text ) : string | ||
text | string | the original text |
return | string |
public static DependencyProperty,System.Windows LineHeightProperty | ||
return |
public static DependencyProperty,System.Windows LineStackingStrategyProperty | ||
return |
public static DependencyProperty,System.Windows TextProperty | ||
return |
public static DependencyProperty,System.Windows TextStyleProperty | ||
return |