BindableCollection with Grouped grid?

Topics: Conventions, Getting Started, UI Architecture
Dec 10, 2012 at 7:42 AM

Is it possible to create a grouped grid with Caliburn.Micro? Not sure how the naming conventions line up with trying to get it to render the views for items and header etc. 

Dec 10, 2012 at 9:01 PM

Yes it is possible, nothing should be that different between the standard examples for creating a grouped grid. 

The one minor difference is that you wouldn't be able to use conventions to bind to the GridView. To enable grouping you need to use a CollectionViewSource with IsSourceGrouped = true, your group view models can then either implement IEnumerable or use the ItemsPath property on the CollectionViewSource (this is all standard).

I'd recommend checking out the demos I created for a Tech Ed talk earlier this year on Bitbucket that show how to do this in an earlier version of CM.

Dec 11, 2012 at 2:29 AM

OH, Awesome thanks a lot!

I think it was the ItemsPath I didn't have which was tripping me up. 

I'm just picking up XAML/WinRT over the last week so still learning :) Thanks!

Dec 11, 2012 at 3:21 AM

Got it all working perfectly now!