mvvmcross MvxActionBasedTableViewSource作为组表 [英] mvvmcross MvxActionBasedTableViewSource as groupped table

查看:343
本文介绍了mvvmcross MvxActionBasedTableViewSource作为组表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



Func CellCreator 真的很棒,一切都很好可以正常工作。



但是。有什么方法可以处理分组表
我需要一些动态绑定。



那么这是否意味着我应该通过我自己的和CellCreator来实现这个逻辑不能用于这种行为?



谢谢!

解决方案

MvxActionBasedTableViewSource 仅用于简单表,因此无法用于没有进行某些更改的分组 - 例如通过继承或复制粘贴。



有关可用TableViewSources的列表,请参阅从边界表源继承的类是什么类型



对于分组示例,请参见创建UITable with部分使用Mono touch和slodge mvvmcross (代码已过期,但原则仍然相同)


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!

解决方案

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)

这篇关于mvvmcross MvxActionBasedTableViewSource作为组表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆