luberda-molinet / FFImageLoading

Image loading, caching & transforming library for Xamarin and Windows
MIT License
1.42k stars 377 forks source link

TapGestureRecognizer not fired #460

Closed tematim closed 7 years ago

tematim commented 7 years ago

Hello,

I have this svg inside my xaml :
`<forms:CachedImage x:Name="ModifyArticle" Grid.Row="0" Grid.Column="5" VerticalOptions="Center" HorizontalOptions="Center" DownsampleToViewSize="true" RetryCount="0" RetryDelay="250" BitmapOptimizations="True" HeightRequest="60" WidthRequest="60" IsVisible="{Binding IsModifyAllowed}">

` On tap, the handler in my code behind isn't called. Is it possible to check this ? Regards
tematim commented 7 years ago

I fixed it:
<forms:CachedImage x:Name="ModifyArticle" Grid.Row="0" Grid.Column="5" VerticalOptions="Center" HorizontalOptions="Center" DownsampleToViewSize="true" RetryCount="0" RetryDelay="250" BitmapOptimizations="True" HeightRequest="60" WidthRequest="60" IsVisible="{Binding IsModifyAllowed}"> <TapGestureRecognizer Tapped="OnModifyTapped" NumberOfTapsRequired="1" /> </forms:CachedImage>