TextBlock.SelectionHighlightColor TextBlock.SelectionHighlightColor TextBlock.SelectionHighlightColor TextBlock.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
<TextBlock SelectionHighlightColor="{StaticResource resourceName}"/>

Property Value

The brush used to highlight the selected text. The default is a null brush from a pure code perspective, but the system uses base text styles to supply a runtime value for apps (unless you specifically override that style). The practical default is a brush using the theme resource TextSelectionHighlightThemeColor.

Remarks

Important

If using a keyboard for text selection within a TextBlock, the user must first activate Caret Browsing (with the app in the foreground, press F7).

See also