TextBox.SelectionHighlightColor TextBox.SelectionHighlightColor TextBox.SelectionHighlightColor TextBox.SelectionHighlightColor Property

Definition

Gets or sets the brush used to highlight the selected text.

public : SolidColorBrush SelectionHighlightColor { get; set; }
SolidColorBrush SelectionHighlightColor();

void SelectionHighlightColor(SolidColorBrush selectionhighlightcolor);
public SolidColorBrush SelectionHighlightColor { get; set; }
Public ReadWrite Property SelectionHighlightColor As SolidColorBrush
<TextBox SelectionHighlightColor="{StaticResource resourceName}"/>

Property Value

The brush used to highlight the selected text. The practical default is a brush using the theme resource TextSelectionHighlightThemeColor.

Remarks

The control template sets the default selection highlight color to the system resource TextSelectionHighlightColorThemeBrush. To change the selection highlight color for all editable text controls in your app, you can override the TextSelectionHighlightColorThemeBrush system resource in App.xaml. This will affect PasswordBox, TextBox, and RichEditBox controls.

See also