HighlightingTextBlock
Eine spezialisierte Hervorhebung Textblocksteuerung. http://www.jeff.wilcox.name/2008/11/highlighting-autocompletebox/
Erbt von: TextBlock
Implementiert: IComponentConnector
Konstruktoren
public HighlightingTextBlock()
highlightingTextBlock = HighlightingTextBlock()
Initialisiert eine neue HighlightingTextBlock @ Klasse.
Eigenschaften
public Brush HighlightBrush { get; set; }
value = highlightingTextBlock.HighlightBrush
highlightingTextBlock.HighlightBrush = value
Bekommt oder setzt den Highlight-Pinsel.
public FontWeight HighlightFontWeight { get; set; }
value = highlightingTextBlock.HighlightFontWeight
highlightingTextBlock.HighlightFontWeight = value
Bekommt oder legt das Schriftgewicht für hervorgehobenen Text fest.
public string HighlightText { get; set; }
value = highlightingTextBlock.HighlightText
highlightingTextBlock.HighlightText = value
Bekommt oder setzt den hervorgehobenen Text.
Methoden
private void ApplyHighlighting()
highlightingTextBlock.ApplyHighlighting()
Wenden Sie die visuelle Hervorhebung an.
public void InitializeComponent()
highlightingTextBlock.InitializeComponent()
InitializeComponent
private static void OnHighlightBrushPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
HighlightingTextBlock.OnHighlightBrushPropertyChanged(d, e)
HighlightBrushProperty Eigenschaft geändert Handler.
- d
- HighlightingTextBlock, das seine HighlightBrush geändert hat.
- e
- Ereignisargumente.
private static void OnHighlightFontWeightPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
HighlightingTextBlock.OnHighlightFontWeightPropertyChanged(d, e)
HighlightFontWeightProperty Eigenschaft geändert Handler.
- d
- HighlightingTextBlock, das seine HighlightFontWeight geändert hat.
- e
- Ereignisargumente.
private static void OnHighlightTextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
HighlightingTextBlock.OnHighlightTextPropertyChanged(d, e)
HighlightText Eigenschaft geändert Handler.
- d
- AutoCompleteBox, das seine HighlightText geändert hat.
- e
- Ereignisargumente.
Felder
public static readonly DependencyProperty HighlightBrushProperty
value = HighlightingTextBlock.HighlightBrushProperty
Identifiziert die Abhängigkeitseigenschaft HighlightBrush.
public static readonly DependencyProperty HighlightFontWeightProperty
value = HighlightingTextBlock.HighlightFontWeightProperty
Identifiziert die Abhängigkeitseigenschaft HighlightFontWeight.
public static readonly DependencyProperty HighlightTextProperty
value = HighlightingTextBlock.HighlightTextProperty
Identifiziert die Abhängigkeitseigenschaft HighlightText.