You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently you can set the OnColor state for a switch but can not set the OffColor state. This leads to having to use a custom solution for myself. This Stack Question highlights the issue when placing a Switch on a Black/dark background the off state dissapears into the background and you are just left with the Thumb selector. Stack Overflow Question with Images
Public API Changes
<Stylex:Key ="ToggleSwitch" TargetType="Switch"><Setter Property="VisualStateManager.VisualStateGroups"><VisualStateGroupList><VisualStateGroup x:Name="CommonStates"><VisualState x:Name="On"><VisualState.Setters><Setter Property="OnColor"
Value="Green"/></VisualState.Setters></VisualState><VisualState x:Name="Off"><!--Hereisthe new suggested proper of OffColor--><VisualState.Setters><Setter Property="OffColor"
Value="Gray"/></VisualState.Setters></VisualState></VisualStateGroup></VisualStateGroupList></Setter></Style>
Intended Use-Case
My current app requires a Dark background (black currently) using the Switch with the ability to set the offstate color would allow me to use the Switch in any coloured environment.
The text was updated successfully, but these errors were encountered:
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
Description
Currently you can set the OnColor state for a switch but can not set the OffColor state. This leads to having to use a custom solution for myself. This Stack Question highlights the issue when placing a Switch on a Black/dark background the off state dissapears into the background and you are just left with the Thumb selector.
Stack Overflow Question with Images
Public API Changes
Intended Use-Case
My current app requires a Dark background (black currently) using the Switch with the ability to set the offstate color would allow me to use the Switch in any coloured environment.
The text was updated successfully, but these errors were encountered: