Returns a deserialized connection based on the given XElement.

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

Syntax

C#
protected virtual DiagramConnection CreateConnection(
	XElement xml,
	DiagramConnectionPoint source,
	DiagramConnectionPoint destination,
	IList<DiagramConnectionSegment> segments
)
Visual Basic (Declaration)
Protected Overridable Function CreateConnection ( _
	xml As XElement, _
	source As DiagramConnectionPoint, _
	destination As DiagramConnectionPoint, _
	segments As IList(Of DiagramConnectionSegment) _
) As DiagramConnection

Parameters

xml
Type: System.Xml.Linq..::.XElement
The XElement for deserializing the connection.
source
Type: Mindscape.WpfDiagramming..::.DiagramConnectionPoint
The source connection point of the connection.
destination
Type: Mindscape.WpfDiagramming..::.DiagramConnectionPoint
The destination connection point of the connection.
segments
Type: System.Collections.Generic..::.IList<(Of <(DiagramConnectionSegment>)>)
The DiagramConnectionSegment objects that make up the connection.

Return Value

The deserialized connection.

See Also