I have a hypothetical tree view that contains this data:
RootNode
Leaf
vein
SecondRoot
seeds
flowers
I am trying to filter the
Unfortunately there is no way to make same Filter apply to all nodes automatically. Filter is a property (not a DP) of ItemsCollection which is not DependencyObject and so DP Value inheritance isn't there.
Each node in the tree has its own ItemsCollection which has its own Filter. The only way to make it work is to manually set them all to call the same delegate.
Simplest way would be to expose Filter property of type Predicate
Aint pretty and I'm not sure what the performance would be like for large amounts of items in the tree.