This example uses the DiagramOrgChartBehavior to generate a hierarchical diagram from a data source or collection.
- Add the DiagramOrgChartBehavior to the DiagramControl.
- Specify the following properties to map the behavior to data:
- The ItemsSource property specifies a collection of source items.
- KeyMember and ParentMember properties specify an item hierarchy for self-referential data.
- Use the Item Template Designer to create "templates" for diagram items and connectors. This designer creates a TemplateDiagram object that contains generated code with diagram shapes and connectors.
- Contact.cs (VB: Contact.vb)
- ContactContextInitializer.cs (VB: ContactContextInitializer.vb)
- MainViewModel.cs (VB: MainViewModel.vb)
- MainWindow.xaml
(you will be redirected to DevExpress.com to submit your response)