This method can be overriden to provide additional logic for allowing a connection to be made between the given connection point and destination. This implementation always returns true.

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

Syntax

C#
public virtual bool CanCreateConnection(
	IDiagramModel diagram,
	IDiagramConnectionPoint fromConnectionPoint,
	ConnectionDropTarget dropTarget
)
Visual Basic (Declaration)
Public Overridable Function CanCreateConnection ( _
	diagram As IDiagramModel, _
	fromConnectionPoint As IDiagramConnectionPoint, _
	dropTarget As ConnectionDropTarget _
) As Boolean

Parameters

diagram
Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramModel
The IDiagramModel that the connection will belong to.
fromConnectionPoint
Type: Mindscape.WpfDiagramming.Foundation..::.IDiagramConnectionPoint
The IDiagramConnectionPoint that represents the start of the connection.
dropTarget
Type: Mindscape.WpfDiagramming.Foundation..::.ConnectionDropTarget
Information about the potential destination of the connection.

Return Value

Whether or not a connection can be made.

Implements

IDiagramConnectionBuilder..::.CanCreateConnection(IDiagramModel, IDiagramConnectionPoint, ConnectionDropTarget)

See Also