Click here to Skip to main content
15,791,758 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
When I press a button I want to search a listview and have it scroll and display the found item

Simplifying the WPF ListView by Using the ViewModel Pattern

What I have tried:

I have not found any examples that can help me
Updated 23-May-23 3:41am
Kenneth Haugland 23-May-23 11:15am    
I find it easiest to create an attached property/behavior to the listview, and use Linq to do the filtering.

1 solution

hmmm... a quick google search: wpf listview search mvvm example - Google[^] turns up many examples, like: List Filtering in WPF with M-V-VM[^], whilst a ListBox is used, the same principle applies. If you are not happy with this, there are many others to choose from the search above.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900