TextBox.SelectionHighlightColorWhenNotFocused Property


Gets or sets the brush used to highlight the selected text when the TextBox does not have focus.

 property SolidColorBrush ^ SelectionHighlightColorWhenNotFocused { SolidColorBrush ^ get(); void set(SolidColorBrush ^ value); };
SolidColorBrush SelectionHighlightColorWhenNotFocused();

void SelectionHighlightColorWhenNotFocused(SolidColorBrush value);
public SolidColorBrush SelectionHighlightColorWhenNotFocused { get; set; }
Public Property SelectionHighlightColorWhenNotFocused As SolidColorBrush
<TextBox SelectionHighlightColorWhenNotFocused="{StaticResource resourceName}"/>
- or -
<TextBox SelectionHighlightColorWhenNotFocused="colorString"/>

Property Value


The brush used to highlight the selected text when TextBox loses focus. The default is a null brush from a pure code perspective, but the default control template for TextBox applies a Transparent brush for this in a runtime instance of a TextBox control. To disable the SelectionHighlightColorWhenNotFocused, set the brush to Transparent once again.

Applies to

See also