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.StarDiagrams
Assembly:  Mindscape.WpfDiagramming.StarDiagrams (in Mindscape.WpfDiagramming.StarDiagrams.dll)
Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public virtual bool CanCreateConnection(
	IDiagramModel diagram,
	IDiagramConnectionPoint fromConnectionPoint,
	ConnectionDropTarget destination
)
Visual Basic (Declaration)
Public Overridable Function CanCreateConnection ( _
	diagram As IDiagramModel, _
	fromConnectionPoint As IDiagramConnectionPoint, _
	destination 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.
destination
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