Class PhaseViewModel
Represents a phase is the subprocess which will split each lanes as horizontally or vertically based on the Swimlane orientation.
Inheritance
System.Object
PhaseViewModel
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.UWP.dll
Syntax
public class PhaseViewModel : SwimlaneChildViewModel, IPhase, 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.Phases>
<syncfusion:PhaseCollection>
<!--Initialize the Phase-->
<syncfusion:PhaseViewModel UnitWidth = "450" >
<syncfusion:PhaseViewModel.Header>
<!--Create a header for Phase-->
<syncfusion:SwimlaneHeader UnitHeight = "30" >
<syncfusion:SwimlaneHeader.Annotation>
<syncfusion:AnnotationEditorViewModel Content = "Phase1" ></syncfusion:AnnotationEditorViewModel>
</syncfusion:SwimlaneHeader.Annotation>
</syncfusion:SwimlaneHeader>
</syncfusion:PhaseViewModel.Header>
</syncfusion:PhaseViewModel>
</syncfusion:PhaseCollection>
</syncfusion:SwimlaneViewModel.Phases>
</syncfusion:SwimlaneViewModel>
</syncfusion:SwimlaneCollection>
</syncfusion:SfDiagram.Swimlanes>
</syncfusion:SfDiagram>
Constructors
PhaseViewModel()
Initializes a new instance of the PhaseViewModel class.
Declaration
public PhaseViewModel()
Properties
Header
Gets or sets a header of the Phase.
Declaration
public object Header { get; set; }
Property Value
Type |
---|
System.Object |
Remarks
Header defines the title of the Phase.
Orientation
Gets or sets the orientation of the Phase. This is applicable only if we add the element into stencil.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type |
---|
Windows.UI.Xaml.Controls.Orientation |
Implements
System.ComponentModel.INotifyPropertyChanged