Back to Devexpress

DiagramConnector Class

wpf-devexpress-dot-xpf-dot-diagram-64ea9da8.md

latest5.0 KB
Original Source

DiagramConnector Class

Connects two diagram items or two points.

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public class DiagramConnector :
    DiagramItem,
    IDiagramConnector,
    IDiagramItem
vb
Public Class DiagramConnector
    Inherits DiagramItem
    Implements IDiagramConnector,
               IDiagramItem

The following members return DiagramConnector objects:

Remarks

To learn more, see Connectors.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DiagramConnector class.

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#L28

xml
</dxdiag:DiagramContainer>
<dxdiag:DiagramConnector BeginPoint="300,164" CanDragBeginPoint="False" CanChangeRoute="False" CanDragEndPoint="False" EndArrow="ClosedASMEArrow" EndArrowSize="10,10" EndPoint="390,254" Points="(Empty)" StrokeId="Black" TemplateName="ClassConnector" Type="Straight"/>
<dxdiag:DiagramContainer Anchors="Left, Top" BackgroundId="Dark_2" CanCopyWithoutParent="True" ConnectionPoints="0.5,0 1,0.5 0.5,1 0,0.5" CanAddItems="False" DragMode="ByAnyPoint" Height="78" ItemsCanChangeParent="False" ItemsCanAttachConnectorEndPoint="False" ItemsCanAttachConnectorBeginPoint="False" ItemsCanSelect="False" ItemsCanEdit="False" ItemsCanCopyWithoutParent="False" ItemsCanMove="False" ItemsCanRotate="False" ItemsCanSnapToOtherItems="False" ItemsCanDeleteWithoutParent="False" ItemsCanSnapToThisItem="False" ItemsCanResize="False" Position="428,369" StrokeId="Black" Shape="StandardContainers.Alternating" ShowHeader="False" StrokeDashArray="5 3" ThemeStyleId="ShapeId.Focused1" TemplateName="InterfaceShape" Width="200">

wpf-diagram-use-diagramorgchartbehavior-to-generate-diagram-from-collection/CS/OrgChartBindingExample/MainWindow.xaml#L39

xml
</dxdiag:DiagramContainer>
    <dxdiag:DiagramConnector BeginPoint="430,190" CanDragBeginPoint="False" CanChangeRoute="False" CanDragEndPoint="False" EndArrow="IndentedFilledArrow" EndArrowSize="12,7" EndPoint="520,280" Points="(Empty)" StrokeThickness="2" ThemeStyleId="ShapeId.Balanced5" Type="Straight"/>
</dxdiag:DiagramControl>

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

xml
<DataTemplate x:Key="connectorTemplate">
    <dxdiag:DiagramConnector
        BeginPointRestrictions="KeepConnected"

Inheritance

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control DiagramItem DiagramConnector

See Also

DiagramConnector Members

DevExpress.Xpf.Diagram Namespace