开发者

.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:

.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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜