Свойство | Тип | Описание | |
---|---|---|---|
LineHeightProperty | |||
LineStackingStrategyProperty | |||
TextProperty | |||
TextStyleProperty | |||
TextWrappingProperty |
Метод | Описание | |
---|---|---|
DynamicTextBlock ( ) : System |
Initializes a new instance of the DynamicTextBlock class
|
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
OnLineHeightChanged ( |
||
OnLineStackingStrategyChanged ( |
||
OnTextChanged ( |
||
OnTextStyleChanged ( |
||
OnTextWrappingChanged ( |
protected GetDesiredText ( string sourceText, int min, int max, |
||
sourceText | string | |
min | int | |
max | int | |
availableSize | ||
unboundSize | ||
wrapping | bool | |
Результат | string |
protected MeasureOverride ( |
||
availableSize | the available size | |
Результат |
protected OnLineHeightChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void | ||
e | System.Windows.DependencyPropertyChangedEventArgs | |
Результат | void |
protected OnLineStackingStrategyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void | ||
e | System.Windows.DependencyPropertyChangedEventArgs | |
Результат | void |
protected OnTextChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void | ||
e | System.Windows.DependencyPropertyChangedEventArgs | |
Результат | void |
protected OnTextWrappingChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void | ||
e | System.Windows.DependencyPropertyChangedEventArgs | |
Результат | void |
protected ReduceText ( string text ) : string | ||
text | string | the original text |
Результат | string |
public static DependencyProperty,System.Windows LineHeightProperty | ||
Результат |
public static DependencyProperty,System.Windows LineStackingStrategyProperty | ||
Результат |
public static DependencyProperty,System.Windows TextProperty | ||
Результат |
public static DependencyProperty,System.Windows TextStyleProperty | ||
Результат |