Hi,
I want my QueryableCollectionView Filter on event which invoke this function in my mainViewModel. Under is my attempt to filter this.
private async Task OnContractGroupSelectionChanged()
{
this.ViewModelCategory.ViewModelCategory= new QueryableCollectionView(this.ViewModelCategory.CategoryData.Where(c => c.ID== this.SectionViewModle.ID));
}
As you can see, I'm "newing" / creating a new instance of the QueryableCollectionView each time I choose a section in a grid.
How can I filter the QueryableCollectionView to only show items which is equal to the SectionID without having to new up an instance of the QueryableCollectionView? I can only choose one section at once, which means each time I choose a section, the QueryableCollectionView will only show the items with the same ID as the section. I tried to add a FilterDescriptor in my MainViewModel which should update QueryableCollectionView in my ViewModelCategory, but my program just hangs up when I try to do that.