© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
8 replies
Donut5162

❔ 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!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Overwriting a WPF ListView Style.
C#CC# / help
4y ago
WPF ListView.HeaderTemplate property not found
C#CC# / help
3y ago
Custom Control WPF - Combobox with search bar and listview
C#CC# / help
4y ago