private void treeView1_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs <object> e) { TreeViewUsbItem Node = e.NewValue as TreeViewUsbItem; if (Node != null) { listView1.ItemsSource = ListViewUsbItem.UsbDetail(Node.Data); } }
private void treeView1_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs <object> e) { TreeViewUsbItem Node = e.NewValue as TreeViewUsbItem; if (Node != null) { listView1.ItemsSource = ListViewUsbItem.UsbDetail(Node.Data); //Splash.IO.PORTS.UsbNodeConnectionInformation nodeData = (Splash.IO.PORTS.UsbNodeConnectionInformation)Node.Data; //Debug.WriteLine(nodeData.DevicePath); } }