dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.75k forks source link

Frame-Switch element with shadow #23800

Closed Lifehack25 closed 3 months ago

Lifehack25 commented 3 months ago

Description

When doing a frame which is a switch element and put on Frame.Shadow, the GestureRecognizer stops working, So that I can not click the frame to toggle the switch..

Steps to Reproduce

Example:

<Frame x:Name="MainFrame" Padding="5" BorderColor="Gray" CornerRadius="15" WidthRequest="170" HeightRequest="70" Margin="0,0,5,0" HasShadow="True">

### Link to public reproduction project repository _No response_ ### Version with bug 9.0.0-preview.6.24327.7 ### 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 Android emulator ### Did you find any workaround? no ### Relevant log output _No response_
github-actions[bot] commented 3 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

jfversluis commented 3 months ago

You probably want to use a Border as also mentioned in #22518. Additionally, Frame will be deprecated and going away. So all the more reason :)

jfversluis commented 3 months ago

Duplicate of #22518