Class LayoutManager
Represents a class which manages the node and connector arrangement.
Inheritance
System.Object
LayoutManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.UI.Xaml.Diagram.Layout
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class LayoutManager
Examples
Below code shows how to create DirectedTreeLayout using LayoutManager
public class Employee
{
public string Name { get; set; }
public string EmpId { get; set; }
public string ParentId { get; set; }
public string Designation { get; set; }
}
public class Employees : ObservableCollection<Employee>
{
}
Constructors
LayoutManager()
Declaration
public LayoutManager()
Properties
Layout
Gets or sets the type of layout either directed tree or radial tree.
Declaration
public LayoutBase Layout { get; set; }
Property Value
Type | Description |
---|---|
LayoutBase |
RefreshFrequency
Gets or sets the value when to update the current layout.
Declaration
public RefreshFrequency RefreshFrequency { get; set; }
Property Value
Type | Description |
---|---|
RefreshFrequency |
Methods
OnLayoutChanged(LayoutBase, LayoutBase)
Method to set the graph value when layoutbase value gets changed.
Declaration
protected virtual void OnLayoutChanged(LayoutBase oldValue, LayoutBase newValue)
Parameters
Type | Name | Description |
---|---|---|
LayoutBase | oldValue | |
LayoutBase | newValue |