I am using CollectionViewSource to filter the records displayed in a ListBox. The xaml follows.
If you're doing MVVM, you could have your VM create a collection view rather than one being created on your behalf by the CollectionViewSource
. Then, you have control over what type of CVS is created, so you can create a ListCollectionViewSource
, which has a Count
property. It really depends on the properties of the data you're filtering.