Skip to content
An interactive ImageView for Xamarin.Forms
C#
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
PanAndZoom
images
.gitattributes
.gitignore
PanAndZoom.sln
README.md

README.md

Xamarin.Forms Interactive ImageView

This repository contains a small Xamarin.Forms example project which contains a custom ImageView which can be panned and zoomed with. The custom view is implemented using the platforms native classes.

The project consists of the following two important classes:

  • PanZoomView: A simple helper class which extends from Image, which contains one bindable property MaxZoomLevel
  • PanZoomImageRenderer: Platform specific exported renderer which contains all logic for the image

For Android the native Canvas is being used. For iOS the native UIImageView is used.

For the sake of user experience, the renderer will limit scaling to a defined limit. The renderer will also prevent the image from moving out of the screen boundaries.

alt text

You can’t perform that action at this time.