WPF.JoshSmith.Controls.DragCanvas 2.0.1

.NET 5.0 .NET Core 3.1 .NET Framework 4.5.2
Install-Package WPF.JoshSmith.Controls.DragCanvas -Version 2.0.1
dotnet add package WPF.JoshSmith.Controls.DragCanvas --version 2.0.1
<PackageReference Include="WPF.JoshSmith.Controls.DragCanvas" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WPF.JoshSmith.Controls.DragCanvas --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WPF.JoshSmith.Controls.DragCanvas, 2.0.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 WPF.JoshSmith.Controls.DragCanvas as a Cake Addin
#addin nuget:?package=WPF.JoshSmith.Controls.DragCanvas&version=2.0.1

// Install WPF.JoshSmith.Controls.DragCanvas as a Cake Tool
#tool nuget:?package=WPF.JoshSmith.Controls.DragCanvas&version=2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

WPF.JoshSmith.Controls.DragCanvas

Build status NuGet License

What does it do?

A Canvas which manages dragging of the UIElements it contains. This Canvas is made by Josh Smith.

This package is based on the following articles:

Examples

<jas:DragCanvas>
  <TextBlock Canvas.Left="20" Canvas.Bottom="50" Text="example"/>
  <Ellipse Canvas.Left="100" Canvas.Bottom="30" Width="65" Height="70" Fill="Blue" />
</jas:DragCanvas>

DragCanvas sample gif

Tools and Products Used

Versions & Release Notes

version 2.0.1:

  • Add 'net5.0'

version 2.0:

  • Replace 'preview mouse down' event by a normal one, so that buttons/comboboxes/scrollbars work when put on draggable controls. Downside, these controls can no longer be dragged on themselves.
  • Replace target net462 and net48 by net472

version 1.1:

  • Expose IsDragInProgress

version 1.0:

  • First version
Product Versions
.NET net5.0 net5.0-windows net5.0-windows7.0 net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp3.1
.NET Framework net452 net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETFramework 4.5.2

    • No dependencies.
  • .NETFramework 4.7.2

    • No dependencies.
  • net5.0-windows7.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on WPF.JoshSmith.Controls.DragCanvas:

Package Downloads
Denxorz.InputOutputSnappingCanvas

A WPF Canvas which allows easy connecting elements. Each element on the canvas can have zero or multiple in and outputs. These inputs and outputs will snap together.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.1 1,487 2/7/2021
2.0.0 1,565 3/19/2020
1.1.0 341 2/2/2020
1.0.0 303 2/1/2020