1
我正在Xamarin.Forms中創建一個跨平臺的應用程序。以下是ContentPage的佈局:Xamarin.Forms.ScrollView內容在iOS上被截斷
<ContentPage.Content>
<ScrollView x:Name="svMarket">
<AbsoluteLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<StackLayout Orientation="Vertical" HorizontalOptions="StartAndExpand">
</StackLayout>
<StackLayout x:Name="overLay" AbsoluteLayout.LayoutBounds="0, 0, 1, 1" AbsoluteLayout.LayoutFlags="All" IsVisible="false" BackgroundColor="#C0808080">
</StackLayout>
</AbsoluteLayout>
</ScrollView>
</ContentPage.Content>
內容在運行時添加,頁面可能變得很長。滾動查看讓我們只能滾動頁面的一小部分,頁面上的其他內容不可見。這個問題只發生在iOS版本中。它在Android上測試時可以正常工作。
第二個stacklayout只能用作覆蓋。第一個stacklayout內有許多網格控件,內容被添加到網格中。
您是否找到解決方案?我面臨類似的問題。 –
查看答案 –