DiagramStudio.Controls 0.1.0

dotnet add package DiagramStudio.Controls --version 0.1.0
                    
NuGet\Install-Package DiagramStudio.Controls -Version 0.1.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="DiagramStudio.Controls" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DiagramStudio.Controls" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="DiagramStudio.Controls" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DiagramStudio.Controls --version 0.1.0
                    
#r "nuget: DiagramStudio.Controls, 0.1.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.
#:package DiagramStudio.Controls@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DiagramStudio.Controls&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=DiagramStudio.Controls&version=0.1.0
                    
Install as a Cake Tool

DiagramStudio.Controls

A drop-in WPF diagram editor — render and edit node-link and swimlane diagrams with a single element. A free, no-licence-key component for flowcharts, process maps, swimlanes, org charts, network diagrams and mind maps. Everything draws on one SkiaSharp surface (pan/zoom is a single matrix, crisp at any zoom); built on DiagramStudio.Core.

Install

dotnet add package DiagramStudio.Controls

(Pulls in DiagramStudio.Core and DotSharp.Core automatically. Targets net8.0-windows, WPF.)

Drop it in

<Window xmlns:dg="clr-namespace:DiagramStudio.Controls;assembly=DiagramStudio.Controls">
    <dg:DiagramControl x:Name="Diagram" />
</Window>
var doc = new DiagramDocument();
var lane = doc.AddLane("Sales");
var a = doc.AddShape("Start", "startend", lane.Id);
var b = doc.AddShape("Prepare quote", laneId: lane.Id);
doc.AddLink(a.Id, b.Id, "go");

Diagram.Document = doc;   // renders, fits, and is immediately editable

What you get

  • Shapes & links — process / decision / start-end (extensible kinds) plus image shapes; orthogonal / straight / Bézier links with arrowheads on both ends, dashes, labels, line-jumps, and obstacle-avoiding routing.
  • Swimlanes & containers — lane bands with drop-into membership; container shapes with a header that auto-resizes to its children and collapses/expands.
  • Full editing loop — pan / zoom / fit, multi-select + marquee, drag, resize & rotate handles, connect mode, drag-to-reconnect endpoints, inline text editing, align / distribute, z-order, group / ungroup, grid snap + alignment guides, undo / redo, copy / paste / duplicate, keyboard nudge.
  • Auto-layout — inject layered / tree / radial / force-directed / circular / grid / swimlane layouts, animated.
  • Styling — per-element fill / stroke / font / arrowhead / dash; Light & Dark themes.
  • Export — PNG, vector PDF, and system print; plus Visio .vsdx and GraphViz DOT open / save.
  • Companion controlsShapePalette, DiagramMinimap, DiagramRuler, LayoutPanel, StylePanel, and live data-binding via DiagramBinding<TNode,TEdge>.

Designed to embed

The control ships no chrome — toolbars, menus, dialogs and file I/O stay in your host, so it drops cleanly into any layout (or a locked-down viewer). Behaviour is tuned with bindable dependency properties (SnapToGrid, IsConnectMode, InlineTextEditing, AvoidObstacles, …) and events (DocumentModified, SelectionChanged, ShapeActivated, …). Persist with DocumentSerializer (JSON) in DiagramStudio.Core.

License

MIT.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.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
0.1.0 111 6/14/2026