HighlightingTextBlock
Ecng.Xaml
A specialized highlighting text block control. http://www.jeff.wilcox.name/2008/11/highlighting-autocompletebox/
Inherits: TextBlock
Implements: IComponentConnector
Constructors
HighlightingTextBlock()
Initializes a new HighlightingTextBlock class.
Properties
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.
Methods
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.
Fields
HighlightBrushProperty : DependencyProperty
Identifies the HighlightBrush dependency property.
HighlightFontWeightProperty : DependencyProperty
Identifies the HighlightFontWeight dependency property.
HighlightTextProperty : DependencyProperty
Identifies the HighlightText dependency property.