Back to Devexpress

DiagramOrgChartBehavior Class

wpf-devexpress-dot-xpf-dot-diagram-5d4e2248.md

latest3.0 KB
Original Source

DiagramOrgChartBehavior Class

Allows you to generate relationship diagrams from a hierarchical data source.

Namespace : DevExpress.Xpf.Diagram

Assembly : DevExpress.Xpf.Diagram.v25.2.dll

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
[DiagramOrgChartControllerCustomBindingProperties]
public class DiagramOrgChartBehavior :
    DiagramDataBindingBehaviorBase,
    IOrgChartBehavior,
    IDataBindingBehaviorBase
vb
<DiagramOrgChartControllerCustomBindingProperties>
Public Class DiagramOrgChartBehavior
    Inherits DiagramDataBindingBehaviorBase
    Implements IOrgChartBehavior,
               IDataBindingBehaviorBase

Remarks

To learn more, see Data Binding.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DiagramOrgChartBehavior class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-diagram-use-diagramorgchartbehavior-to-generate-diagram-from-collection/CS/OrgChartBindingExample/MainWindow.xaml#L14

xml
<dxmvvm:Interaction.Behaviors>
    <dxdiag:DiagramOrgChartBehavior ItemsSource="{Binding Contacts}" KeyMember="Id" ParentMember="ParentId">
        <dxdiag:DiagramOrgChartBehavior.TemplateDiagram>

Inheritance

Object DispatcherObject DependencyObject Freezable Animatable DevExpress.Mvvm.UI.Interactivity.AttachableObjectBase DevExpress.Mvvm.UI.Interactivity.Behavior DevExpress.Mvvm.UI.Interactivity.Behavior<DiagramControl> DiagramDataBindingBehaviorBase DiagramOrgChartBehavior

See Also

DiagramOrgChartBehavior Members

DevExpress.Xpf.Diagram Namespace