HighlightingTextBlock

Ecng.Xaml

A specialized highlighting text block control. http://www.jeff.wilcox.name/2008/11/highlighting-autocompletebox/

继承自: TextBlock

实现: IComponentConnector

构造函数

HighlightingTextBlock()

Initializes a new HighlightingTextBlock class.

属性

HighlightBrush : Brush

Gets or sets the highlight brush.

HighlightFontWeight : FontWeight

Gets or sets the font weight used on highlighted text.

HighlightText : string

Gets or sets the highlighted text.

方法

ApplyHighlighting()

Apply the visual highlighting.

InitializeComponent()

InitializeComponent

OnHighlightBrushPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)

HighlightBrushProperty property changed handler.

d
HighlightingTextBlock that changed its HighlightBrush.
e
Event arguments.
OnHighlightFontWeightPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)

HighlightFontWeightProperty property changed handler.

d
HighlightingTextBlock that changed its HighlightFontWeight.
e
Event arguments.
OnHighlightTextPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)

HighlightText property changed handler.

d
AutoCompleteBox that changed its HighlightText.
e
Event arguments.

字段

HighlightBrushProperty : DependencyProperty

Identifies the HighlightBrush dependency property.

HighlightFontWeightProperty : DependencyProperty

Identifies the HighlightFontWeight dependency property.

HighlightTextProperty : DependencyProperty

Identifies the HighlightText dependency property.