Skip to content

Mrxx99/Xamarin.Forms.PinchZoomImage

 
 

Repository files navigation

Xamarin.Forms.PinchZoomImage

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.

This is the component, works on iOS, Android

NuGet

Name Info
Xamarin.Forms.PinchZoomImage NuGet

Platform Support

PinchZoomImage is a .NET Standard 2.0 library.Its only dependency is the Xamarin.Forms

Setup / Usage

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/pt-br/xamarin/xamarin-forms/app-fundamentals/gestures/pinch

About

🔍 Zoom in on the image with the pinch of your fingers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%