menu

WPF

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

    Show / Hide Table of Contents

    Class LaneViewModel

    Represents 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.

    Inheritance
    System.Object
    DiagramElementViewModel
    GroupableViewModel
    SwimlaneChildViewModel
    LaneViewModel
    Implements
    ILane
    ISwimlaneChild
    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
    SwimlaneChildViewModel.ShapeStyle
    SwimlaneChildViewModel.UnitHeight
    SwimlaneChildViewModel.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 LaneViewModel : SwimlaneChildViewModel, ILane, ISwimlaneChild, IGroupable, IDiagramElement, IID, INotifyPropertyChanged
    Examples
    <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">
                          <!--Create a header for Swimlane-->
                         <syncfusion:SwimlaneViewModel.Header>
                             <syncfusion:SwimlaneHeader UnitHeight = "32" >
                                 <syncfusion:SwimlaneHeader.Annotation>
                                     <syncfusion:AnnotationEditorViewModel Content="SALES PROCESS FLOW CHART">
                                     </syncfusion:AnnotationEditorViewModel>
                                  </syncfusion:SwimlaneHeader.Annotation>
                              </syncfusion:SwimlaneHeader>
                          </syncfusion:SwimlaneViewModel.Header>
                         <syncfusion:SwimlaneViewModel.Lanes>
                             <syncfusion:LaneCollection>
                                 <!--Initialize the Lane-->
                                 <syncfusion:LaneViewModel UnitHeight = "100">
                                 </syncfusion:LaneViewModel>
                             </syncfusion:LaneCollection>
                         </syncfusion:SwimlaneViewModel.Lanes>
                     </syncfusion:SwimlaneViewModel>
                 </syncfusion:SwimlaneCollection>
             </syncfusion:SfDiagram.Swimlanes>
         </syncfusion:SfDiagram>

    Constructors

    LaneViewModel()

    Creates new instance of LaneViewModel class.

    Declaration
    public LaneViewModel()

    Properties

    Children

    Gets or sets a collection of objects where each object represents a INode.

    Declaration
    public object Children { get; set; }
    Property Value
    Type
    System.Object

    Header

    Gets or sets a header of the Lane.

    Declaration
    public object Header { get; set; }
    Property Value
    Type
    System.Object
    Remarks

    Header defines the title of the Lane.

    Orientation

    Gets or sets the orientation of the Lane. This is applicable only if we add the element into stencil.

    Declaration
    public Orientation Orientation { get; set; }
    Property Value
    Type
    System.Windows.Controls.Orientation

    Implements

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