Sach K
Sach K

Reputation: 733

Carousel page does not swipe on some device

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:

It does not work for the following platforms:

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

Upvotes: 1

Views: 290

Answers (1)

Sach K
Sach K

Reputation: 733

Not sure what was causing this issue, but I created a new project and shifted all my existing code to that project which then fixed the carousel page. Now working!

Upvotes: 0

Related Questions