Version

GetNodesFromItems Method

Gets the XamDataTreeNodes associated with specific items in the ItemsSource.
Syntax
'Declaration
 
Public Function GetNodesFromItems( _
   ByVal items() As Object, _
   ByVal recursive As Boolean _
) As XamDataTreeNode()
public XamDataTreeNode[] GetNodesFromItems( 
   object[] items,
   bool recursive
)

Parameters

items
An array of objects from the underlying items source
recursive
If true will check all descendant nodes as well for matches.

Return Value

An array of the associated XamDataTreeNodes for the data items that were found.
Remarks
Since this may be an expensive operation depending on the size and structure of the data, the logic first checks all of the XamDataTreeNodes at the root level and if all matches are not found then checks all of the descendant nodes.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also