.NET MAUI: Change off color of switch
is there an opportunity to change the off color of a switch control? I ca开发者_StackOverflow社区n change ThumbColor or OnColor, but unfortunately not OffColor.
When switch is not toggled, you can't see the complete switch control very good:
Thank you!
When switch is not toggled, you can't see the complete switch control very good.
The background color set for the switch affects the visual effect.
You can try to set to another color.
Please refer to the following code:
<Switch OnColor="Orange"
BackgroundColor="White"
ThumbColor="Green"
Toggled="Switch_Toggled" />
精彩评论