spicermicer.ZoomBorder 1.0.0

dotnet add package spicermicer.ZoomBorder --version 1.0.0
NuGet\Install-Package spicermicer.ZoomBorder -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="spicermicer.ZoomBorder" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add spicermicer.ZoomBorder --version 1.0.0
#r "nuget: spicermicer.ZoomBorder, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install spicermicer.ZoomBorder as a Cake Addin
#addin nuget:?package=spicermicer.ZoomBorder&version=1.0.0

// Install spicermicer.ZoomBorder as a Cake Tool
#tool nuget:?package=spicermicer.ZoomBorder&version=1.0.0

ZoomBorder

Provides a zoom border that allows internal elements to be zoomed and panned.

It's a very basic single control library, the original code was stolen from the following stackoverflow answer Here

Example Usage

Basic Usage

First import the library to the userspace

xmlns:zoomable="clr-namespace:ZoomBorder;assembly=ZoomBorder"

Then implement the control with whatever control you want inside

<zoomable:ZoomBorder>
    <Image Source="..."/>
</zoomable:ZoomBorder>

Defining actions

By default the zoompanel with use left click to pan, and right click to reset the zoom function. These can be modified by using the following code

<zoomable:ZoomBorder            
        LeftButtonAction="None"
        RightButtonAction="Move"
        MiddleButtonAction="Reset">    
    <Image Source="..."/>
</zoomable:ZoomBorder>

Zoom range

You can modify the limits on the zoom by using the following

<zoomable:ZoomBorder
    ScaleMin="0.5"
    ScaleMax="10">
    <Image Source="..."/>
</zoomable:ZoomBorder>

This will provide a zoom panel where the user can zoom out so the contents is half the original size (0.5) and zoom in to where the contents in 10 times the original size

Example

An example of the zoompanels usage can be found in Example

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0-windows7.0

    • No dependencies.

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
1.0.0 215 9/2/2022