Back to Devexpress

DiagramOrgChartBehavior.ParentMember Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramorgchartbehavior.md

latest2.2 KB
Original Source

DiagramOrgChartBehavior.ParentMember Property

Specifies the name of the data field that identifies the parent of a data item. This is a dependency property.

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public string ParentMember { get; set; }
vb
Public Property ParentMember As String

Property Value

TypeDescription
String

A System.String value.

|

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

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>

See Also

KeyMember

DiagramOrgChartBehavior Class

DiagramOrgChartBehavior Members

DevExpress.Xpf.Diagram Namespace