[英]Page having a horizontal list view, and displaying that list data in the Screen Xamarin Forms
我有一個頁面,現在我要做的就是在列表視圖中進行水平滾動。 列表視圖包含進度條,圖像和標簽。 在列表視圖中選擇任何項目后,它將在其余屏幕上顯示結果。 我該如何實現?
將Rotation設置為270(所有VisualElement具有Rotation BindableProperty)。 但是,這似乎是次優的解決方案,因為頂部和底部都有空白,您必須左右拖動視圖才能完全看到所有內容。
<ListView x:Name="ListView" Rotation="270" ItemsSource="{Binding Items}" RowHeight="40">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<ViewCell.View>
<StackLayout>
<!--your layout go there-->
</StackLayout>
</ViewCell.View>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.