Zoom in on the image with the pinch of your fingers.
A simple way to zoom in and zoom out on your images with Xamarin.Forms.
NuGet
Name | Info | Contributors |
---|---|---|
Xamarin.Forms.PinchZoomImage |
Platform Support
PinchZoomImage is a .NET Standard 2.0 library.Its only dependency is the Xamarin.Forms
Does not require additional configuration. Just install the package in the shared project and use.
You just need to add the reference in your xaml file.
xmlns:pinch="clr-namespace:Xamarin.Forms.PinchZoomImage;assembly=Xamarin.Forms.PinchZoomImage"
Control
Use with the image control
<pinch:PinchZoom>
<pinch:PinchZoom.Content>
<Image Source="xxamarin.jpg" />
</pinch:PinchZoom.Content>
</pinch:PinchZoom>
The complete example can be downloaded here: https://github.com/TBertuzzi/Xamarin.Forms.PinchZoomImage/tree/master/PinchZoomImageSample
Base on original docs : https://docs.microsoft.com/xamarin/xamarin-forms/app-fundamentals/gestures/pinch