BackgroundColor is not applied to track area in Switch control #13717
Labels
area-controls-switch
Switch
partner/syncfusion
Issues / PR's with Syncfusion collaboration
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
"OnColor" property does work into "ON" state only
![Screenshot 2023-03-06 at 18 00 18](https://user-images.githubusercontent.com/80826968/223150516-aaf6e948-9d26-418b-ae3b-81ec5eb1df91.png)
Background property appied to conrol container instead of track area.
![Screenshot 2023-03-06 at 18 19 02](https://user-images.githubusercontent.com/80826968/223150941-fc1a46bf-06c9-4583-9079-c5c75de75034.png)
This makes it impossible to customize track area on the Android platform.
In IOS "OnColor" property works correctly:
![Screenshot 2023-03-06 at 18 38 39](https://user-images.githubusercontent.com/80826968/223150783-1a2a75c1-94b9-4a95-9349-a17468ae2fac.png)
Steps to Reproduce
<Style x:Key="SwitchStyle-Android" TargetType="Switch"> <Setter Property="BackgroundColor" Value="Red"/> <Setter Property="OnColor" Value="SkyBlue"/> <Setter Property="ThumbColor" Value="Orange"/> </Style>
Link to public reproduction project repository
https://github.com/nevse/MauiTrackAreaIssue
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 12
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: