Xamarin.Forms 中的水平列表视图
Horizontal Listview in Xamarin.Forms
正如上面的标题,我想在xamarin.forms中创建横向ListView
。
但是我找到的解决方案和例子并不是我想要的那种水平列表。
我偶然发现的每一篇文章,项目都是这样排列的
item1____item2____item3____item4____item5
我想做的是这样的
item1___item2
item3___item4
item5___and so on
在windowsphone我们可以这样做
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<toolkit:WrapPanel ItemWidth="222" ItemHeight="100"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
现在,是否可以在 xamarin.forms 中创建类似的内容?
据我所知,在 Xamarin Forms 中没有直接实现这样的东西。但是有一个来自 Daniel Luberda 的 FlowListView
控件。也许这就是你想要的:
https://github.com/daniel-luberda/DLToolkit.Forms.Controls/tree/master/FlowListView/
正如上面的标题,我想在xamarin.forms中创建横向ListView
。
但是我找到的解决方案和例子并不是我想要的那种水平列表。
我偶然发现的每一篇文章,项目都是这样排列的
item1____item2____item3____item4____item5
我想做的是这样的
item1___item2
item3___item4
item5___and so on
在windowsphone我们可以这样做
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<toolkit:WrapPanel ItemWidth="222" ItemHeight="100"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
现在,是否可以在 xamarin.forms 中创建类似的内容?
据我所知,在 Xamarin Forms 中没有直接实现这样的东西。但是有一个来自 Daniel Luberda 的 FlowListView
控件。也许这就是你想要的:
https://github.com/daniel-luberda/DLToolkit.Forms.Controls/tree/master/FlowListView/