Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Difference with TapGestureRecognizer on Android and WindowsPhone

$
0
0

Hi,

Can anyone help me to solve next problem. I have few columns and few rows in grid, in some of them I put image and created a command. Here is some XAML:

<Grid Grid.Row="0" Grid.Column="2" Grid.ColumnSpan="3" BackgroundColor="#FFA5628D">
    <Image  Source="danger.jpg" >
        <Image.GestureRecognizers>
            <TapGestureRecognizer Command="{Binding DangerCommand}" />
        </Image.GestureRecognizers>
    </Image>
</Grid>

When I run app on Android I catch my tap not only on the image but outside it in this grid cell (this behavior which I'd like to have). But when I run it on WindowsPhone - I catch tap directly on my image. How can I make the same behavior as on Android?

Here is a picture for better understanding a problem (my goal is to catch tap not only on the image, but at the purple part of grid cell, right as it works on Android)

Thanks.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>