<ListView.Resources>
<CollectionViewSource x:Key="adv" Source="{Binding Adventurers}">
<CollectionViewSource.Filter>
</CollectionViewSource.Filter>
</CollectionViewSource>
</ListView.Resources>
The compiler gives me 2 errors when I attempt this:
"The member "Filter" is not recognized or is not accessible."
"Property 'Filter' does not have a value."
It does this regardless of where in the XAML I create the CollectionViewSource. Does anybody know what the problem could be?
For this project I'm trying to create my views in pure XAML. I would like to avoid code-behind if possible.
Update: I've been using the code in this answer as a guide: https://stackoverflow.com/a/6462282/1667020 - I have included everything from the answer into my code and I still have the same problem.