Returns true if a connection can be made between the given source and destination. Returns false otherwise. Star diagram connection validation logic prevents any kind of cycles or loops being created.

Namespace:  Mindscape.WpfDiagramming.StarDiagrams
Assembly:  Mindscape.WpfDiagramming.StarDiagrams (in Mindscape.WpfDiagramming.StarDiagrams.dll)
Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public override bool CanRelocateConnection(
	IDiagramModel diagram,
	IDiagramConnection connection,
	IDiagramConnectionPoint connectionPoint,
	ConnectionDropTarget dropTarget
)
Visual Basic (Declaration)
Public Overrides Function CanRelocateConnection ( _
	diagram As IDiagramModel, _
	connection As IDiagramConnection, _
	connectionPoint As IDiagramConnectionPoint, _
	dropTarget As ConnectionDropTarget _
) As Boolean

Parameters

diagram
Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramModel
The IDiagramModel where the connection relocation is taking place.
connection
Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramConnection
The IDiagramConnection that is being relocated.
connectionPoint
Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramConnectionPoint
The connection point at the end of the connection that is not being moved.
dropTarget
Type: Mindscape.WpfDiagramming.Foundation..::.ConnectionDropTarget
Information about the possible destination of the connection.

Return Value

True if a connection is allowed to be made. False otherwise.

Implements

IDiagramConnectionRelocator..::.CanRelocateConnection(IDiagramModel, IDiagramConnection, IDiagramConnectionPoint, ConnectionDropTarget)

See Also