GoXam for WPF v3
IsValidLink Method (LinkingBaseTool)
Northwoods.GoXam.Tool Namespace > LinkingBaseTool Class : IsValidLink Method
the "from" Northwoods.GoXam.Node
the "from" FrameworkElement
the "to" Northwoods.GoXam.Node (perhaps the same as fromnode)
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

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

Reference

LinkingBaseTool Class
LinkingBaseTool Members