I am trying to create a TIleView in a WPF form that is bound to an observable collection. Everything seems to be working but my issue is that I want to have a nested tileview in the parent's large content template. This child tileview should display a collection that is a property in the parent item.
An example is this
I have Customers Collection. Each customer has orders collection.
Whats needed:
Display customers in tileview. When double clicking a customer tileviewitem, display orders in another tileview inside the item's large content using the orders collection that belongs to that customer.
I have tried using HierarichalDataTemplates but the result was not satisfactory. Is there a way to do this?
I am using Linq to Entities and just setting the ItemsSource of the child tileview to the child collection actually makes a call to the database to get the children using the id of the parent item that is bound to the TileViewItem that was maximized. I actually want to use the orders that exists in the Customer object instead since they are filtered instead of making the call to the database.
Any help would be appreciated.
Thanks,
An example is this
I have Customers Collection. Each customer has orders collection.
Whats needed:
Display customers in tileview. When double clicking a customer tileviewitem, display orders in another tileview inside the item's large content using the orders collection that belongs to that customer.
I have tried using HierarichalDataTemplates but the result was not satisfactory. Is there a way to do this?
I am using Linq to Entities and just setting the ItemsSource of the child tileview to the child collection actually makes a call to the database to get the children using the id of the parent item that is bound to the TileViewItem that was maximized. I actually want to use the orders that exists in the Customer object instead since they are filtered instead of making the call to the database.
Any help would be appreciated.
Thanks,