如上所述,我想在xamarin.forms中創建橫向ListView
。Xamarin.Forms中的水平列表視圖
但我找到的解決方案和示例不是我想要的那種水平列表。
,我偶然發現了每次的文章,該項目被安排這樣
item1____item2____item3____item4____item5
我想要做的就是這樣的事情
item1___item2
item3___item4
item5___and so on
Windows Phone中,我們可以做這樣的
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<toolkit:WrapPanel ItemWidth="222" ItemHeight="100"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
現在,是否有可能在xamarin.forms中創建類似這樣的東西?
什麼是這個用例?如果你有一個列表視圖,通常列表項之間沒有任何關係。如果不是這種情況,那麼你應該創建一個'[[item1,item2],[item3,item4]]'列表並使用'StackPanel'。 – cansik