开发者

.NET MAUI: Change off color of switch

开发者 https://www.devze.com 2022-12-07 19:43 出处:网络
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.

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:

.NET MAUI: Change off color of switch

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" />
0

精彩评论

暂无评论...
验证码 换一张
取 消