2015-12-21 81 views
4

如上所述,我想在xamarin.forms中創建橫向ListViewXamarin.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中創建類似這樣的東西?

+0

什麼是這個用例?如果你有一個列表視圖,通常列表項之間沒有任何關係。如果不是這種情況,那麼你應該創建一個'[[item1,item2],[item3,item4]]'列表並使用'StackPanel'。 – cansik

回答

2

據我所知,在Xamarin Forms中沒有直接實現這樣的東西。但Daniel Luberda有一個FlowListView控制。也許這是你想要什麼:

enter image description here

https://github.com/daniel-luberda/DLToolkit.Forms.Controls/tree/master/FlowListView/

+0

這正是我想要的!謝啦!現在我只需要知道如何實現它。再次感謝人 – Akaya93

+0

在Github頁面上應該有足夠的信息。如果您遇到特定問題,請在此處提問。如果你能接受我的答案,那將是非常好的。 – cansik