Laminar.Avalonia.SelectAndMove 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Laminar.Avalonia.SelectAndMove --version 1.0.0                
NuGet\Install-Package Laminar.Avalonia.SelectAndMove -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="Laminar.Avalonia.SelectAndMove" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Laminar.Avalonia.SelectAndMove --version 1.0.0                
#r "nuget: Laminar.Avalonia.SelectAndMove, 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 Laminar.Avalonia.SelectAndMove as a Cake Addin
#addin nuget:?package=Laminar.Avalonia.SelectAndMove&version=1.0.0

// Install Laminar.Avalonia.SelectAndMove as a Cake Tool
#tool nuget:?package=Laminar.Avalonia.SelectAndMove&version=1.0.0                

Laminar.Avalonia.SelectAndMove

SelectAndMove is a lightweight, modular Avalonia control for selecting and moving controls.

Example Screenshot See source code for this example

Implementation Details

The core SelectAndMove class is a Canvas with several GestureRecognisers that manage the select, pan, zoom, move, and box select gestures. These are designed to be portable and can go on any other Panel - making a new Canvas and adding these GestureRecognisers gives identical functionality to the SelectAndMove class.

Also provided is a BackgroundGridLines object which is designed to be added as a child to the SelectAndMove canvas. It adds grid lines that automatically adjusts to the current zoom level, and provides a "SnapGrid" property that can be bound to the SelectAndMove canvas to snap controls to the grid lines (shown in the example)

Thanks to the PanAndZoom for name and code inspiration. If all you need is the Pan and Zoom functionality, PanAndZoom may be easier to use.

Resources

GitHub Repository

Nuget Package

License

SelectAndMove is licensed under the MIT license

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos 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.

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.1.0 92 10/3/2024
1.0.0 221 3/19/2023