Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 5.19 KB

File metadata and controls

53 lines (35 loc) · 5.19 KB

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

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)