Class SwimlaneViewModel
Represents a cluster multiple nodes and connectors into a single element. It acts like a container for its children (nodes, groups, and connectors).
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.UWP.dll
Syntax
public class SwimlaneViewModel : NodeViewModel, ISwimlane, INode, IGroupable, IDiagramElement, IID, INotifyPropertyChanged
Examples
Below example explains how to add swimlane into diagram control.
<!-- Initialize the Sfdiagram -->
<Syncfusion:SfDiagram x:Name="diagram">
<Syncfusion:SfDiagram.Swimlanes>
<!-- Initialize the SwimlaneCollection -->
<Syncfusion:SwimlaneCollection>
<!--Initialize the Swimlane-->
<Syncfusion:SwimlaneViewModel OffsetX = "300" OffsetY="150"
UnitHeight="120" UnitWidth="450"/>
</Syncfusion:SwimlaneCollection>
</Syncfusion:SfDiagram.Swimlanes>
</Syncfusion:SfDiagram>
Constructors
SwimlaneViewModel()
Initializes a new instance of the SwimlaneViewModel class.
Declaration
public SwimlaneViewModel()
Properties
ChildrenSpacing
Gets or sets the spacing value between the lane/phase header and its children.
Declaration
public Thickness ChildrenSpacing { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Thickness |
Header
Gets or sets a header of the Swimlane.
Declaration
public object Header { get; set; }
Property Value
Type |
---|
System.Object |
Remarks
Header defines the title of the Swimlane.
Lanes
Gets or sets a collection of objects where each object represents a ILane.
Declaration
public object Lanes { get; set; }
Property Value
Type |
---|
System.Object |
Remarks
A lane is a functional unit or a responsible department of a business process that helps to map a process within the functional unit or in between other functional units.
Orientation
Gets or sets the orientation of the Swimlane. Either Horizontal or Vertical.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Controls.Orientation |
Remarks
The default orientation is Horizontal.
Phases
Gets or sets a collection of objects where each object represents a IPhase.
Declaration
public object Phases { get; set; }
Property Value
Type |
---|
System.Object |
Remarks
A phase is the subprocess which will split each lane as horizontally or vertically based on the Orientation.