-
-
Notifications
You must be signed in to change notification settings - Fork 230
Connections Overview
Connections are created between two points. The Source
and Target
dependency properties are of type Point
and are usually bound to a connector's Anchor
point.
The base class for all connections provided by the library is BaseConnection
which derives from Shape
. There's no restriction to derive from BaseConnection
when you create a custom connection.
It exposes two commands with their corresponding events:
-
DisconnectCommand
, respectivelyDisconnectEvent
- fired when the connection is clicked while holdingALT
-
SplitCommand
, respectivelySplitEvent
- fired when the connection is double-clicked
The Direction
of a connection can have two values:
Forward
Backward
The SourceOffset
and the TargetOffset
works together with OffsetMode
and will keep the distance from the anchor point:
Connections also have a Spacing
which will make the connection break the angle at a certain distance from the Source
and Target
points:
- With spacing:
- Without spacing:
Settings the ArrowSize
to "0, 0" will remove the arrow head.
Canceling a pending connection is done by releasing the right mouse button.