在Xamarin.Forms和WinPhone Silverlight中降低ScrollView性能

时间:2016-09-05 19:03:31

标签: xamarin windows-phone-8.1 xamarin.forms

我在WP SL平台上专门使用ScrollView中的各种布局(例如StackLayout,Grid)时表现不佳。在其他平台(Android和iOS)上,使用相同的布局表现更好。我目前正在使用最新的稳定版Xamarin.Forms(2.3.1.114)。有人也遇到过这个问题吗?

感谢。

更新:添加代码示例以更好地理解。布局本身并不复杂。

    <ScrollView>
      <StackLayout BackgroundColor="Black" Padding="5" Spacing="20" >
       <StackLayout>
        <Label Text="User name:" />
        <Label Text="{Binding LoggedInUser}" />
       </StackLayout>
       <StackLayout>
        <Label FontSize="Medium" FontAttributes="Bold" TextColor="Gray" Text="Help" />
        <BoxView HeightRequest="1" BackgroundColor="Gray" HorizontalOptions="Fill" />
        <Label FontSize="Small" FontAttributes="Bold" TextColor="Gray" Text="Please, send an email to xxx@example.com" />  
       </StackLayout>
      </StackLayout>
   </ScrollView>

0 个答案:

没有答案