Home > OS >  How can I display a list of objects within a list of objects, with a multi value header
How can I display a list of objects within a list of objects, with a multi value header

Time:07-26

I am trying to display a list of objects that contain a list of objects. I have gone down a few rabbit holes, including grouping ObservableCollections but haven't been able to implement the right approach. From what I can tell, grouping only uses a single title/key (can anyone confirm this?).

For context, I am making a barcode scanning Android app for vehicle loading using Xamarin Forms and C#.

I have an object for a Shipping Order, which is the parent item, with the labels Order Ref, Cust Name and Delivery Date.

Within this object there are multiple Shipping Items, listed Item 1, Item 2 etc.

I have mocked up a rough example of how I would like the data to be structured in the view. I want to be able to bind all of these entries, so background colours can be changed when the items are scanned, and the parent colour changed when all items for the order have been fulfilled.

I'd be grateful if you could point me in the right direction.

enter image description here

Style as desired.

  • Related