Frame Tap Gesture not working when using Visual="Material" in ios

Sahadev_GuptaSahadev_Gupta INMember ✭✭✭
edited March 8 in Xamarin.Forms

I have updated my Xamarin Forms to 3.6. I've set Frame visual to material but the tap gesture is not working. I've tried using command and Tapped event as well but nothing works out. If i remove the visual from frame then everything works fine

Here is my Code

<Frame Visual="Material">
                            <Frame.GestureRecognizers>
                                <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped" />
                            </Frame.GestureRecognizers>
                            <StackLayout>
                                <Image Source="map.png" HeightRequest="30" WidthRequest="30"/>
                                <Label Text="Nearby" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
                            </StackLayout>
                        </Frame>

<Frame Visual="Material">
                            <Frame.GestureRecognizers>
                                <TapGestureRecognizer Command="{Binding NextCommand}" />
                            </Frame.GestureRecognizers>
                            <StackLayout>
                                <Image Source="Dbox2.png" HeightRequest="30" WidthRequest="30"/>
                                <Label Text="My Products" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/>
                            </StackLayout>
                        </Frame>

Answers

Sign In or Register to comment.