Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
XamDataTree GetNodesFromItems doesn't work
posted

Hello,

I'm trying to get a list of all selected nodes.

I found GetNodesFromItems method, but it always returns empty result even when SelectedDataItems is not empty:

if (sender is XamDataTree dataTree && e.OriginalSource is TextBlock)
{
    var selectedNodes = dataTree.GetNodesFromItems(dataTree.SelectedDataItems, false);
}

Am I doing something wrong?