Back to Devexpress

DiagramDataBindingBehavior.ConnectorsSource Property

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

latest3.4 KB
Original Source

DiagramDataBindingBehavior.ConnectorsSource Property

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

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public IEnumerable ConnectorsSource { get; set; }
vb
Public Property ConnectorsSource As IEnumerable

Property Value

TypeDescription
IEnumerable

An IEnumerable object that provides data to the DiagramDataBindingBehavior.

|

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

xml
ConnectorToMember="ToEmployeeID"
ConnectorsSource="{Binding Relations}"
ItemTemplateSelector="{StaticResource diagramItemTemplateSelector}"

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

xml
ConnectorFromMember="From"
ConnectorsSource="{Binding Connections}"
ConnectorToMember="To"

See Also

ItemsSource

DiagramDataBindingBehavior Class

DiagramDataBindingBehavior Members

DevExpress.Xpf.Diagram Namespace