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 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.