Skip to content

[Android] Switch Shadow Does Not Follow Thumb when Toggle On or Off #30046

@TamilarasanSF4853

Description

@TamilarasanSF4853

Description

When a shadow property is applied to a Switch control, the shadow does not move with the thumb when toggling the switch on or off. The shadow remains in its initial position and does not update to follow the thumb’s movement, causing a visual inconsistency. This issue occurs in both ON and OFF states. The expected behavior is for the shadow to move together with the thumb whenever the switch is toggled.

Image

Steps to Reproduce

  1. Run the attached sample project. MauiApp8.zip
  2. Toggle the switch ON and OFF.
  3. Observe that the shadow does not move or update with the thumb; it remains in its initial position regardless of the switch state.

Link to public reproduction project repository

No response

Version with bug

9.0.70 SR7

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions