Northwoods.GoSilverlight 1.3.5 Assembly
IsValidLink Method
See Also  Send Feedback
Northwoods.GoXam.Tool Namespace > LinkingBaseTool Class : IsValidLink Method

fromnode
the "from" Northwoods.GoXam.Node
fromport
the "from" FrameworkElement
tonode
the "to" Northwoods.GoXam.Node (perhaps the same as fromnode)
toport
the "to" FrameworkElement (perhaps the same as fromport)
This predicate should be true when it is logically valid to connect a link from one node/port to another node/port.

Syntax

Visual Basic (Declaration) 
Public Overridable Function IsValidLink( _
   ByVal fromnode As Node, _
   ByVal fromport As FrameworkElement, _
   ByVal tonode As Node, _
   ByVal toport As FrameworkElement _
) As Boolean
C# 
public virtual bool IsValidLink( 
   Node fromnode,
   FrameworkElement fromport,
   Node tonode,
   FrameworkElement toport
)

Parameters

fromnode
the "from" Northwoods.GoXam.Node
fromport
the "from" FrameworkElement
tonode
the "to" Northwoods.GoXam.Node (perhaps the same as fromnode)
toport
the "to" FrameworkElement (perhaps the same as fromport)

Return Value

False if IsValidFrom is false for the fromnode and fromport. False if IsValidTo is false for the tonode and toport. False if IsInSameNode is true unless Northwoods.GoXam.Node.GetLinkableSelfNode is true for both ports. False if IsLinked is true unless Northwoods.GoXam.Node.GetLinkableDuplicates is true for both ports. False if trying to link to the link's own label node(s). False if IDiagramModel.IsLinkValid or one of the model-specific IsRelinkValid methods is false, depending on whether OriginalLink is null (a new link) or non-null (a relink). Otherwise true.

Requirements

See Also

© 2012 All Rights Reserved.