[]
.NET 8 SDK
Windows Forms application project
C1.Win.Diagram NuGet package
C1.Diagram.Parser NuGet package (for MermaidJS)
Open Visual Studio and Create a new Windows Forms Application
Open the NuGet Package Manager.
Install the C1.Win.Diagram and C1.Diagram.Parser packages.
Add the FlexDiagram control to the form by using the following code:
using C1.Win.Diagram;
// Create and configure the diagram
var diagram = new FlexDiagram();
diagram.Dock = DockStyle.Fill;
this.Controls.Add(diagram);