2017-08-29 66 views

回答

1

將旋轉設置爲270(所有VisualElements都具有旋轉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> 
+0

我只使用這個,但我的佈局出錯了。我想要一個文本視圖在頂部,然後是圖像,然後是進度條。 但是,當我啓用水平滾動時,每行的大小非常小,佈局不正確。 – aman