ZoomView.Forms 2.1.1

.NET Standard 1.0
Install-Package ZoomView.Forms -Version 2.1.1
dotnet add package ZoomView.Forms --version 2.1.1
<PackageReference Include="ZoomView.Forms" Version="2.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ZoomView.Forms --version 2.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ZoomView.Forms, 2.1.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ZoomView.Forms as a Cake Addin
#addin nuget:?package=ZoomView.Forms&version=2.1.1

// Install ZoomView.Forms as a Cake Tool
#tool nuget:?package=ZoomView.Forms&version=2.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

<br /> <p align="center"> <h1 align="center">ZoomView.Forms</h3> <p align="center"> Quickly add a zoomable wrapper to any VisualElement <br /> </p> </p>

Table of Contents

Codacy Badge nuget

About The Project

ZoomView.Forms aims to provide iOS and Android Xamarin Developer the ability to add a 'zoomview', which is basically a scrollview with the ability to pan in/out. The gesture recognition also is able to scale with your content.

Getting Started

Simply add xmlns:ZoomView="clr-namespace:ZoomView.Forms;assembly=ZoomView.Forms.Plugin" to your xaml pages then all you need is

<ZoomView:ZoomView>
  Your view here
</ZoomView:ZoomView>

Version 2.0.0

In Version 2.0.0, there is a new UserInteractionEnabled property thats part of the ZoomView. This property makes Zooming far easier within the ZoomView, however, it also disables interaction of the Content within the ZoomView.

Installation

Ensure that ZoomView.Forms is added to all projects, shared and Android/iOS

Usage

NOTE: Zooming can be interfered with by other touches being registered at the beginning of the pan gesture.

here is an example view that i created

<ZoomView:ZoomView>
		<StackLayout Margin="20,0,20,0" VerticalOptions="Center">
			<Label Text="Phone number" TextColor="WhiteSmoke" />
			<Entry
            IsSpellCheckEnabled="false"
            IsTextPredictionEnabled="false"
            Keyboard="Telephone"
            MaxLength="16"
            Text="{Binding Mobile, Mode=TwoWay}" />
			<Label
            Margin="0,15,0,0"
            Text="PIN"
            TextColor="WhiteSmoke" />
			<Entry
            IsPassword="true"
            IsSpellCheckEnabled="false"
            IsTextPredictionEnabled="false"
            Text="{Binding Password, Mode=TwoWay}" />
			<Button
            Margin="0,25,0,20"
            BackgroundColor="Green"
            BorderColor="Transparent"
            BorderWidth="1"
            Command="{Binding LoginAsync}"
            CornerRadius="25"
            FontAttributes="Bold"
            HeightRequest="50"
            IsEnabled="{Binding LoginEnabled}"
            Text="Sign In"
            TextColor="White" />
		</StackLayout>
	</ZoomView:ZoomView>

Result:

iOS Gif Example Android Gif Example

License

This project uses the MIT License

Contact

My Github, or reach me on the Xamarin Slack, or on my E-mail

Project Link: ZoomView.Forms

Acknowledgements

  • The Android code i got my main base from one of the following I will continue searching for the exact one. however was a while ago.
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.0 netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid monoandroid90
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Windows Phone wp8 wp81 wpa81
Windows Store netcore netcore45 netcore451
Xamarin.iOS xamarinios xamarinios10
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.1 822 7/26/2021
2.0.0 238 2/24/2021
1.0.0 901 8/9/2020

AllowEasyZoomInteraction has been renamed to UserInteractionEnabled to better reflect its intention

iOS UserInteractionEnabled has been fixed and working now.