Reputation: 93
Like in the title.
I cleared all styles and still - when the user select text in entry or editor there is coloured background of this selected text. I want to set what colour it would be. How to do that?
Right now this is the Windows theme colour but it made the application ugly, as this colour is irrelevant to my layout. How to set this colour for my own or disable this Windows theme styling at all.
Upvotes: 2
Views: 2324
Reputation: 1
I did some digging after reading Jaydopartu's comment and found a possible solution. Go into App.xaml in the platform>windows directory for your maui project.
You need to add <SolidColorBrush x:Key="TextControlSelectionHighlightColor" Color="COLORYOUWANTHERE"/>
This worked for me on .NET 7.0 Maui and this other thread I found looks like It has a lot of properties that can be set. Link to other thread I found
Upvotes: 0