RichEditBox.SelectionHighlightColorWhenNotFocused RichEditBox.SelectionHighlightColorWhenNotFocused RichEditBox.SelectionHighlightColorWhenNotFocused RichEditBox.SelectionHighlightColorWhenNotFocused Property

Definition

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

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

void SelectionHighlightColorWhenNotFocused(SolidColorBrush selectionhighlightcolorwhennotfocused);
public SolidColorBrush SelectionHighlightColorWhenNotFocused { get; set; }
Public ReadWrite Property SelectionHighlightColorWhenNotFocused As SolidColorBrush
<RichEditBox SelectionHighlightColorWhenNotFocused="{StaticResource resourceName}"/>

Property Value

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

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

See also