Skip to content

DevExpress-Examples/wpf-diagram-use-diagramdatabindingbehavior-to-generate-diagram-from-collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF Diagram - Use the DiagramDataBindingBehavior to Generate a Diagram from a Collection

This example uses the DiagramDataBindingBehavior to generate a diagram from a data source or collection.

image

  1. Add the DiagramDataBindingBehavior to the DiagramControl.

  2. Specify the following properties to map the behavior to data:

  3. 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.

  4. Handle the GenerateItem and GenerateConnector events to display different items based on a condition.

    In these event handlers, the TemplateName property value allows you to identify generated "templates".

Files to Review

Documentation

More Examples

About

Use the DiagramDataBindingBehavior to generate a diagram from a data source or collection

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •