Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.23 KB

numberbox_selectionhighlightcolor.md

File metadata and controls

30 lines (18 loc) · 1.23 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.NumberBox.SelectionHighlightColor
winrt property

Microsoft.UI.Xaml.Controls.NumberBox.SelectionHighlightColor

-description

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

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

-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 NumberBox, PasswordBox, TextBox, and RichEditBox controls.

-see-also

Using brushes to paint backgrounds, foregrounds, and outlines

-examples