How to change highlighted foreground color for WPF TextBox?

I am working on an application that has both WinForms and WPF controls; In the case of selected WinForms TextBox text, the Background color is blue and white, respectively, while in WPF TextBox it is LightBlue and Black.

As said in these questions, I can use the SelectionBrush property (WPF 4) to change the selected text, but How to change the foreground color of the selected text?

How can you change the highlighted text color for a WPF text field?

How to change highlighted text color for TextBox?

+6
source share
1 answer

You cannot, the control does not allow this.

+7
source

Source: https://habr.com/ru/post/917186/


All Articles