Skip to content

Instantly share code, notes, and snippets.

@asozyurt
Created October 27, 2018 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asozyurt/7d57dcb943644ac24a271af9a3de6231 to your computer and use it in GitHub Desktop.
Save asozyurt/7d57dcb943644ac24a271af9a3de6231 to your computer and use it in GitHub Desktop.
Capturing Swipe Gesture From An Image
xmlns:bhv="clr-namespace:PathToZoomImageBehavior"
...
<ContentView VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand">
<Image x:Name="imgActivePage"
Aspect="Fill"
Source="{Binding ImageUrl}">
<Image.Behaviors>
<bhv:ZoomImageBehavior IsScaleEnabled="True"
IsTranslateEnabled="True" />
</Image.Behaviors>
</Image>
</ContentView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment