mvvmcross MvxActionBasedTableViewSource as grouppe

2019-08-31 02:23发布

问题:

I use MvxActionBasedTableViewSource for my custom binding on common grids.

Func CellCreator is really great and everything works fine with that.

But. What way is it expected to deal with groupped tables? I need some dynamic binding with them.

So, does that mean that I should implement that logic by my own and CellCreator can not be used for such behaviour anyhow?

Thanks!

回答1:

MvxActionBasedTableViewSource is designed for simple tables only - so cannot be used for grouping without some changes - e.g. via inheritance or copy and paste.

For a list of available TableViewSources, see What class to inherit from for bound table source

For an example of grouping, see Creating UITable with section using Mono touch and slodge mvvmcross (the code is out of date, but the principles are still the same)