HighlightTextBlock
Represents a special text block that enables coloring of specific char.
Definition
Namespace:Telerik.Windows.Controls.GridView
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class HighlightTextBlock : TextBlock, INotifyPropertyChanged
Inheritance: objectHighlightTextBlock
Implements:
Constructors
Initializes a new instance of the HighlightTextBlock class.
public HighlightTextBlock()
Initializes a new instance of the HighlightTextBlock class.
public HighlightTextBlock(SearchStateManager searchStateManager)
Fields
HighlightBrushProperty
DependencyProperty
Identifies the HighlightBrush dependency property.
public static readonly DependencyProperty HighlightBrushProperty
HighlightTextProperty
DependencyProperty
Identifies the HighlightText dependency property.
public static readonly DependencyProperty HighlightTextProperty
Properties
Gets or sets a value indicating whether the text contains matches based on the search criteria.
public bool ContainsMatch { get; set; }
true if the text contains match; otherwise, false.
Gets or sets the data type of the property bound the to Text property.
public Type DataType { get; set; }
The type of the property bound to TextProperty.
HighlightBrush
Brush
Gets or sets the highlight brush.
public Brush HighlightBrush { get; set; }
Gets or sets the highlighted text.
public string HighlightText { get; set; }
Methods
public override void OnApplyTemplate()
Events
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged
Implements: