HighlightingTextBlock

Ecng.Xaml

Eine spezialisierte Hervorhebung Textblocksteuerung. http://www.jeff.wilcox.name/2008/11/highlighting-autocompletebox/

Erbt von: TextBlock

Implementiert: IComponentConnector

Konstruktoren

HighlightingTextBlock
public HighlightingTextBlock()
highlightingTextBlock = HighlightingTextBlock()

Initialisiert eine neue HighlightingTextBlock @ Klasse.

Eigenschaften

HighlightBrush
public Brush HighlightBrush { get; set; }
value = highlightingTextBlock.HighlightBrush
highlightingTextBlock.HighlightBrush = value

Bekommt oder setzt den Highlight-Pinsel.

HighlightFontWeight
public FontWeight HighlightFontWeight { get; set; }
value = highlightingTextBlock.HighlightFontWeight
highlightingTextBlock.HighlightFontWeight = value

Bekommt oder legt das Schriftgewicht für hervorgehobenen Text fest.

HighlightText
public string HighlightText { get; set; }
value = highlightingTextBlock.HighlightText
highlightingTextBlock.HighlightText = value

Bekommt oder setzt den hervorgehobenen Text.

Methoden

ApplyHighlighting
private void ApplyHighlighting()
highlightingTextBlock.ApplyHighlighting()

Wenden Sie die visuelle Hervorhebung an.

InitializeComponent
public void InitializeComponent()
highlightingTextBlock.InitializeComponent()

InitializeComponent

OnHighlightBrushPropertyChanged
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.
OnHighlightFontWeightPropertyChanged
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.
OnHighlightTextPropertyChanged
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

HighlightBrushProperty
public static readonly DependencyProperty HighlightBrushProperty
value = HighlightingTextBlock.HighlightBrushProperty

Identifiziert die Abhängigkeitseigenschaft HighlightBrush.

HighlightFontWeightProperty
public static readonly DependencyProperty HighlightFontWeightProperty
value = HighlightingTextBlock.HighlightFontWeightProperty

Identifiziert die Abhängigkeitseigenschaft HighlightFontWeight.

HighlightTextProperty
public static readonly DependencyProperty HighlightTextProperty
value = HighlightingTextBlock.HighlightTextProperty

Identifiziert die Abhängigkeitseigenschaft HighlightText.