NumberBox.SelectionHighlightColor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the brush used to highlight the selected text.
public:
property SolidColorBrush ^ SelectionHighlightColor { SolidColorBrush ^ get(); void set(SolidColorBrush ^ value); };
SolidColorBrush SelectionHighlightColor();
void SelectionHighlightColor(SolidColorBrush value);
public SolidColorBrush SelectionHighlightColor { get; set; }
var solidColorBrush = numberBox.selectionHighlightColor;
numberBox.selectionHighlightColor = solidColorBrush;
Public Property SelectionHighlightColor As SolidColorBrush
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.
Applies to
See also
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin