menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SwimlaneViewModel - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    System.Object
    DiagramElementViewModel
    GroupableViewModel
    NodeViewModel
    SwimlaneViewModel
    Implements
    ISwimlane
    INode
    IGroupable
    IDiagramElement
    IID
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    DiagramElementViewModel.ID
    DiagramElementViewModel.Info
    DiagramElementViewModel.Key
    DiagramElementViewModel.OnPropertyChanged(String)
    DiagramElementViewModel.PropertyChanged
    GroupableViewModel.IsSelected
    GroupableViewModel.Name
    GroupableViewModel.SearchTags
    GroupableViewModel.ZIndex
    NodeViewModel.AnnotationConstraints
    NodeViewModel.Annotations
    NodeViewModel.ConnectorPadding
    NodeViewModel.Constraints
    NodeViewModel.Content
    NodeViewModel.ContentTemplate
    NodeViewModel.Flip
    NodeViewModel.FlipMode
    NodeViewModel.HitPadding
    NodeViewModel.IsExpanded
    NodeViewModel.LaneOffsetX
    NodeViewModel.LaneOffsetY
    NodeViewModel.MaxHeight
    NodeViewModel.MaxWidth
    NodeViewModel.Menu
    NodeViewModel.MinHeight
    NodeViewModel.MinWidth
    NodeViewModel.OffsetX
    NodeViewModel.OffsetY
    NodeViewModel.ParentGroup
    NodeViewModel.Pivot
    NodeViewModel.Ports
    NodeViewModel.PortVisibility
    NodeViewModel.RotateAngle
    NodeViewModel.Shape
    NodeViewModel.ShapeStyle
    NodeViewModel.SnapToObject
    NodeViewModel.ThemeStyleId
    NodeViewModel.UnitHeight
    NodeViewModel.UnitWidth
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.UI.Xaml.Diagram
    Assembly: Syncfusion.SfDiagram.WPF.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
    System.Windows.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
    System.Windows.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.

    Implements

    ISwimlane
    INode
    IGroupable
    IDiagramElement
    IID
    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved