❔ WPF ListView with LinkedList
Hello,
I have a ListView/GridView that is binded to a LinkedList. When I use the SelectedItem property of my ListView, it returns the value T of the LinkedListNode that is selected, and not the LinkedListNode itself, which is what I want. How do I get the LinkedListNode?
I could just use the Find() method on my LinkedList with the T value to get the node I want, but I would like to avoid this as it is a linear time operation.
Any help would be greatly appreciated!
I have a ListView/GridView that is binded to a LinkedList. When I use the SelectedItem property of my ListView, it returns the value T of the LinkedListNode that is selected, and not the LinkedListNode itself, which is what I want. How do I get the LinkedListNode?
I could just use the Find() method on my LinkedList with the T value to get the node I want, but I would like to avoid this as it is a linear time operation.
Any help would be greatly appreciated!