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

parts
Find the actual collection of nodes and links to be moved or copied, given an initial collection.

Syntax

Visual Basic (Declaration) 
Public Overridable Function ComputeEffectiveCollection( _
   ByVal parts As IEnumerable(Of Part) _
) As Dictionary(Of Part,DraggingTool.Info)
C# 
public virtual Dictionary<Part,DraggingTool.Info> ComputeEffectiveCollection( 
   IEnumerable<Part> parts
)

Parameters

parts

Return Value

a Dictionary of Northwoods.GoXam.Parts, mapped to DraggingTool.Infos holding their original Northwoods.GoXam.Node.Locations

Remarks

Besides the Northwoods.GoXam.Parts in the parts collection, the result collection will include all member nodes and links, links whose connected nodes are both in the effective collection, and any link labels. This means that sometimes some or many of the parts that are dragged are not actually selected.

You may want to override this method to include additional parts that are related logically in some manner particular to your application. To handle the common case of wanting to move all of the tree-structure children of selected nodes, you can just set Inclusions to EffectiveCollectionInclusions.SubTree.

Requirements

See Also

© 2012 All Rights Reserved.