【问题标题】:Carousel page does not swipe on some device轮播页面无法在某些设备上滑动
【发布时间】:2016-05-01 10:19:21
【问题描述】:

我创建了一个 Xamarin Forms 项目。我的项目中有以下 XAML:

 <CarouselPage>
  <ContentPage>
    <StackLayout>
      <Label Text="Red" />
      <BoxView Color="Red" VerticalOptions="FillAndExpand" />
    </StackLayout>
  </ContentPage>
  <ContentPage>
    <StackLayout>
      <Label Text="Green" />
      <BoxView Color="Green" VerticalOptions="FillAndExpand" />
    </StackLayout>
  </ContentPage>
  <ContentPage>
    <StackLayout>
      <Label Text="Blue" />
      <BoxView Color="Blue" VerticalOptions="FillAndExpand" />
    </StackLayout>
  </ContentPage>
</CarouselPage>

现在轮播页面适用于以下平台:

  • UWP - 本地机器

  • Windows 8.1 - 本地机器

  • Android - 模拟器

不适用于以下平台:

  • UWP - 设备(移动)

  • WinPhone (WinPhone 8.1) - 设备(移动)

它无法识别手机上的滑动手势。我该如何解决这个问题?

【问题讨论】:

    标签: xaml win-universal-app carousel xamarin.forms win-phone-silverlight-8.1


    【解决方案1】:

    不确定是什么导致了这个问题,但我创建了一个新项目并将所有现有代码转移到该项目,然后修复了轮播页面。现在开始工作了!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-09-26
      • 2018-11-20
      • 2018-08-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-07
      相关资源
      最近更新 更多