Back to Devexpress

DiagramItem.Bindings Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramitem-6b4f1d51.md

latest3.6 KB
Original Source

DiagramItem.Bindings Property

Gets a collection of current diagram item’s bindings. This is a dependency property.

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
[Browsable(false)]
public DiagramBindingCollection Bindings { get; }
vb
<Browsable(False)>
Public ReadOnly Property Bindings As DiagramBindingCollection

Property Value

TypeDescription
DevExpress.Diagram.Core.DiagramBindingCollection

A DiagramBindingCollection object.

|

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

xml
<dxdiag:DiagramImage Anchors="All" Angle="0" CanSnapToThisItem="False" CanResize="False" CanCopyWithoutParent="False" CanMove="False" CanSnapToOtherItems="False" CanSelect="False" CanRotate="False" CanCopy="False" Height="190" Position="0,0" StretchMode="UniformToFill" ThemeStyleId="ShapeId.Balanced5" Width="142">
    <dxdiag:DiagramImage.Bindings>
        <dxdiag:DiagramBinding Expression="Photo" PropertyName="Image"/>

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

xml
<dxdiag:DiagramShape Anchors="Left, Top" Angle="0" Background="Transparent" CanAttachConnectorBeginPoint="False" CanResize="False" CanEdit="False" CanCopyWithoutParent="False" CanChangeParent="False" CanMove="False" CanAttachConnectorEndPoint="False" CanSelect="False" CanDeleteWithoutParent="False" CanRotate="False" ForegroundId="Black" FontWeight="Bold" FontFamily="Arial" Height="25" Position="11,10" StrokeThickness="0" ThemeStyleId="Variant2" TextAlignment="Left" Width="176">
    <dxdiag:DiagramShape.Bindings>
        <dxdiag:DiagramBinding Expression="ClassName" PropertyName="Content"/>

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

xml
Shape="BasicShapes.Rectangle">
<dxdiag:DiagramShape.Bindings>
    <dxdiag:DiagramBinding Expression="Position" PropertyName="Content" />

See Also

DiagramItem Class

DiagramItem Members

DevExpress.Xpf.Diagram Namespace