【发布时间】:2017-08-09 08:15:48
【问题描述】:
对于在 ListView 中显示的捐赠列表,我如何定位最后一行来编辑其样式?
【问题讨论】:
-
您可以使用 DataTemplateSelector 来满足您的要求。但是您需要再添加一个属性来识别模型(ListView 项绑定模型)中的最后一行,例如布尔 IsLast。 developer.xamarin.com/guides/xamarin-forms/…
-
尝试在列表视图中使用页脚
-
@MikeDarwish 你还有什么问题吗?
-
@PavanVParekh 我正在从服务器获取来自 Json 的数据,我无法将 IsLast 添加到对象中
-
@MikeDarwish 我不能使用页脚,因为我在列表中使用 ContextAction,所以页脚将无法访问 ContextAction
标签: listview xamarin.forms portable-class-library