Diagram
DiagramControlDraw a workflow or process as boxes and labeled arrows in one inline SVG.
Overview
DiagramControl is a Blazor diagram that draws boxes and arrows, such as a receiving workflow, as one inline SVG from nodes and connectors you place. Use it to explain a process or show where a request stands; it offers six shape values (Rectangle and RoundedRectangle draw alike), straight or right-angled connectors with labels and arrowheads, and a click event for details. Users cannot drag or edit it; change the objects in C# and the diagram redraws.
Examples
#A receiving workflow
Click a step, or use Previous step and Next step (they walk the accepted path, then the rejected branch), to read who handles it and how long it takes; the page marks the current step with a thicker outline through its CssClass.
Truck checked in
Dock office
- Typical time
- 10 minutes
- What happens
- The driver hands in the delivery note; the office finds the purchase order and assigns one of the six docks.
#Shapes, connectors and links
See every shape value and the connector styles on one canvas, with automatic ports and one connector pinned to the bottom and top. Click Bin tag scanned: the handler sets Handled, so its NavigateUrl is not followed until you switch on Follow links. Hover Bin tag scanned or Shipped for a tooltip; the gray node is disabled.