I have a treeview that is bound to a collection and each item in the collection is bound to another collection. (using hierachle data templates)
I would like to use the collection view .Filter event handler to search the tree.
The problem is that I need multiple collection views.
What would be the best way to filter the tree view items for example by a search word? I can do this with a single binding of a collection, but once there are collections within collections I have trouble.
The easiest way I found to do this is create a SearchFilter Property
You bind the search filter to a text box, and everytime the search text box changes you notify that the collection has changed
Once the change has occured on the SearchFilter, The WPF binding system will requery the Collection Property, which can then be filtered down
This will only return the filter collection.