水平的ListView Xamarin.Forms [英] Horizontal ListView Xamarin.Forms

查看:838
本文介绍了水平的ListView Xamarin.Forms的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时的任何方法来创建的ListView 水平滚动 Xamarin。表格 像图片

这就是我对垂直做

  VAR myListView =新的ListView
{
    ItemTemplate中=新的DataTemplate(typeof运算(的ImageCell))
};


解决方案

像其他人所说的,不可能的ListView和我认为这是一个很大的监督由Xamarin与形式。我们需要动态地显示在不止一个列表做下来驱动对象的数据....拜托你们大家!

然而,在Xamarin实验室项目有GridView的哪些可以使用。它仍然是一个有点粗糙和乡亲们都通过了一些bug现在选择项目的工作。

https://github.com/XForms/Xamarin-Forms-Labs

有人似乎有一个变通的这个问题:

https://github.com/XForms/Xamarin-Forms-Labs/问题/ 236

Is any way to create ListView with horizontal scroll in Xamarin.Forms like image

this is what i have done for vertical

var myListView = new ListView
{
    ItemTemplate = new DataTemplate(typeof(ImageCell))
};

解决方案

Like the others have said, not possible with ListView and I think it's a big oversight by Xamarin with Forms. We need to dynamically display data driven objects in more than just a list doing down....come on ya'll!!

However, in the Xamarin Labs project there is GridView which you could use. It's still a bit rough and folks are working through some bugs now with selecting the items.

https://github.com/XForms/Xamarin-Forms-Labs

Someone does seem to have a work around for that problem:

https://github.com/XForms/Xamarin-Forms-Labs/issues/236

这篇关于水平的ListView Xamarin.Forms的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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