This question is locked. New answers and comments are not allowed.
Hello.
I have next structure of code:
ObservableItemCollection<Item> Items;
QueryableCollectionView CollectionView = new QueryableCollectionView(Items);
GridView grdMain;
grdMain.ItemsSource = CollectionView;
class Item
{
public strng Name;
public List<Item> Child;
}
I need to filter CollectionView collection such as: Item => Child.Any(a => a.ID == 100).
In other words: Select Item Where Child contain Item with ID == 100.
How can I do it? I thought to use FilterDescriptor, but don't know how to create expression.
I have next structure of code:
ObservableItemCollection<Item> Items;
QueryableCollectionView CollectionView = new QueryableCollectionView(Items);
GridView grdMain;
grdMain.ItemsSource = CollectionView;
class Item
{
public strng Name;
public List<Item> Child;
}
I need to filter CollectionView collection such as: Item => Child.Any(a => a.ID == 100).
In other words: Select Item Where Child contain Item with ID == 100.
How can I do it? I thought to use FilterDescriptor, but don't know how to create expression.