1

I've created a Xamarin Forms project. I have the following XAML in my project:

 <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>

Now the Carousel page works on the following platforms:

  • UWP - localMachine

  • Windows 8.1 - localMachine

  • Android - emulator

It does not work for the following platforms:

  • UWP - device (mobile)

  • WinPhone (WinPhone 8.1) - device (mobile)

It does not recognize the swipe gesture on the phones. How do I resolve this?

4

1 回答 1

0

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

于 2016-05-10T13:48:12.983 回答