Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.76 KB

richeditbox_selectionhighlightcolorwhennotfocused.md

File metadata and controls

39 lines (26 loc) · 1.76 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.RichEditBox.SelectionHighlightColorWhenNotFocused
winrt property

Windows.UI.Xaml.Controls.RichEditBox.SelectionHighlightColorWhenNotFocused

-description

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

-xaml-syntax

<RichEditBox SelectionHighlightColorWhenNotFocused="{StaticResource resourceName}"/>
- or -
<RichEditBox SelectionHighlightColorWhenNotFocused="colorString"/>

-xaml-values

resourceName
resourceNameThe resource name (x:Key attribute value) of an existing XAML resource that defines a brush. This is the recommended way to specify Brush values in XAML if you have any intention of using the same colors or brushes in more than one part of your UI. See Remarks in Brush or ResourceDictionary and XAML resource references.
colorString
colorStringThe Color for a SolidColorBrush expressed as an attribute string. This can be a named color, an RGB value, or an ScRGB value. RGB or ScRGB may also specify alpha information. See the XAML Values section in Color.

-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.

-remarks

-see-also

SelectionHighlightColor

-examples