Laminar.Avalonia.SelectAndMove
1.0.0
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
<PackageReference Include="Laminar.Avalonia.SelectAndMove" Version="1.0.0" />
paket add Laminar.Avalonia.SelectAndMove --version 1.0.0
#r "nuget: Laminar.Avalonia.SelectAndMove, 1.0.0"
// 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.
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
License
SelectAndMove is licensed under the MIT license
Product | Versions 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. |
-
net6.0
- Avalonia (>= 0.10.18)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.