Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Switch Control Thumb Shadow #19676

Open
AlleSchonWeg opened this issue Jan 3, 2024 · 5 comments
Open

Android Switch Control Thumb Shadow #19676

AlleSchonWeg opened this issue Jan 3, 2024 · 5 comments
Labels
legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@AlleSchonWeg
Copy link

Description

Hi,
i'm trying to migrate my XF project. Problem is that the switch looks different in MAUI. The shadow from the thumb no longer exists.
image

How can i get back the shadow? Is the new behaviour expected?

Steps to Reproduce

Repro is just add a switch in a Page und remove the default styles in Styles.xaml.

Thank you

Link to public reproduction project repository

No response

Version with bug

8.0.3

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

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

No response

@AlleSchonWeg AlleSchonWeg added the t/bug Something isn't working label Jan 3, 2024
@samhouts samhouts added migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor labels Jan 3, 2024
@Zhanglirong-Winnie Zhanglirong-Winnie added s/triaged Issue has been reviewed s/try-latest-version Please try to reproduce the potential issue on the latest public version labels Apr 25, 2024
@Zhanglirong-Winnie
Copy link
Collaborator

Verified this issue with Visual Studio 17.10.0 Preview 5(8.0.7&8.0.3). Not repro on android platform. I remove the default styles in Styles.xaml.
MAUI:
image
XF:
image

@AlleSchonWeg
Copy link
Author

Hi this is not fixed. Tried 8.0.40-nightly.10539.
image
Repro:
MauiApp6.zip

@dotnet-policy-service dotnet-policy-service bot removed the s/try-latest-version Please try to reproduce the potential issue on the latest public version label Apr 25, 2024
@Zhanglirong-Winnie
Copy link
Collaborator

Hi, @AlleSchonWeg
I looked at the sample project you provided, and I think the problem is that your BackgroundColor is the same as ThumbColor.
image

@AlleSchonWeg
Copy link
Author

Hi, @AlleSchonWeg I looked at the sample project you provided, and I think the problem is that your BackgroundColor is the same as ThumbColor. image

Yes. That is correct. Forgot it to mention. Sorry.
But the problem is the thumb shadow. The shadow disappeared if the color is the same. In XF it works with the same color.

@Zhanglirong-Winnie Zhanglirong-Winnie added the s/verified Verified / Reproducible Issue ready for Engineering Triage label Apr 28, 2024
@Zhanglirong-Winnie
Copy link
Collaborator

According to the user's latest reply, BackgroundColor is the same as ThumbColor, this issue repro on 17.10.0 Preview 5.
MauiApp6.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants