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.
TextBox
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?
SelectionBrush
How can you change the highlighted text color for a WPF text field?
How to change highlighted text color for TextBox?
You cannot, the control does not allow this.
Source: https://habr.com/ru/post/917186/More articles:Using System.Threading.Tasks.Parallel to create a new thread in a thread pool? - c #Override ToString method in WCF service - c #Objective-C - Optimizing this Singleton Pattern? - memory-managementLinux shared object without character interpolation, -fno-semantic-interposition error - shared-librariesHttpClient 4.2, Basic Authentication and AuthScope - javajava String format for a long integer of at least 10 characters - javaCapture to save actions in Eclipse plugin - javastruts2 - java.lang.IllegalStateException occurs intermittently, while the action causes a stream of results to load the PDF file - javaCan I destroy and recreate a remote Git branch in one command? - gitC ++ as protected in java - javaAll Articles