I'm trying to create an MVVMCross-based UITableView with multiple sections. The recommended way of binding data in the ViewModel to items in the table is to create a binding with an MvxTableViewSource's ItemsSource property like so:
var source = new MyCustomMvxTableViewSource(MyTableView);
this.AddBindings(new Dictionary<object, string>
{
{source, "ItemsSource MyObservableCollection"}
});
MyTableView.Source = source;
This works fine if I don't need to have multiple sections, but I do. There's a super-complicated example of achieving this here, but I'm very much hoping that there's a much simpler way of doing this with MVVMCross. There's nothing in their documentation that helps with this, even though a table with sections is a common iOS feature.
I'm hoping someone, somewhere can point me in the direction of some code examples to help me achieve this?