Back to Devexpress

DiagramDataBindingBehaviorBase.ItemsSource Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramdatabindingbehaviorbase-9675d931.md

latest3.9 KB
Original Source

DiagramDataBindingBehaviorBase.ItemsSource Property

Gets or sets the data source for items. This is a dependency property.

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public object ItemsSource { get; set; }
vb
Public Property ItemsSource As Object

Property Value

TypeDescription
Object

An IEnumerable object that provides data to the DiagramDataBindingBehaviorBase.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the ItemsSource 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>

wpf-diagram-use-diagramdatabindingbehavior-to-generate-diagram-from-collection/CS/DiagramDataBindingBehavior/MainWindow.xaml#L13

xml
<dxmvvm:Interaction.Behaviors>
    <dxdiag:DiagramDataBindingBehavior ItemsSource="{Binding ClassSource}" ConnectorsSource="{Binding ConnectionSource}" ConnectorFromMember="ConnectedFrom" ConnectorToMember="ConnectedTo" KeyMember="ClassName" LayoutKind="Sugiyama" ClearExistingItems="False" GenerateItem="DiagramDataBindingBehavior_GenerateItem" GenerateConnector="DiagramDataBindingBehavior_GenerateConnector">
        <dxdiag:DiagramDataBindingBehavior.TemplateDiagram>

wpf-generate-diagram-with-grouped-items/CS/DiagramNestedItemsExample/MainWindow.xaml#L87

xml
ItemsSelector="{StaticResource itemsSelector}"
ItemsSource="{Binding Departments}"
KeySelector="{StaticResource keySelector}"

wpf-diagram-bind-item-positions-to-source-objects/CS/dxSample/MainWindow.xaml#L23

xml
CustomLayoutItems="DiagramDataBindingBehavior_CustomLayoutItems"
ItemsSource="{Binding Items}"
KeyMember="Id">

See Also

ConnectorsSource

DiagramDataBindingBehaviorBase Class

DiagramDataBindingBehaviorBase Members

DevExpress.Xpf.Diagram Namespace