-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Problems with Button and ImageButton #5347
Comments
Verified on Visual Studio Enterprise 2022 main 17.2.0 Preview 2.0 [32223.438.main]. Repro on Android with above project. |
CornerRadius should be handled by this #4820. You can workaround it by converting to PX from DP when setting on Android. You can "workaround" the shadow using this #2918 (comment). It loses some tapped state functionality though. |
Could you try again with Preview 14?. This should be fixed by #4820 |
Done, it's better, the shadow issues on Android seem to be fixed, but to follow up on my suspicions about CornerRadious I added this to Button_Clicked:
As I suspected, it's not quite right, on Android it looks like the ImageButton CornerRadius is still being interpreted as PX not DP, the Button handling of the same property seems ok. On Windows dynamically setting CornerRadius does not seem to do anything either on Button or ImageButton. |
@jsuarezruiz / @Redth it looks like #4820 actually got orphaned on the |
Seems like it's fixed in RC1, thanks |
Description
There are a variety of issues on Android (maybe other places too, but that's all I've tried).
The issues I've noticed are:
I suspect there I've seen other issues in more complex circumstances, but these are the obvious simple ones.
MAUIButtons.zip
Steps to Reproduce
Test program and snapshots of the pages it produces attached
Version with bug
Preview 13 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Unknown, I tested only on Android 11
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: