xamarin/Xamarin.Forms

[Bug] Some views not visible when swiping back and forth through CarouselView containing a FlexLayout

Open

#8,956 opened on Dec 18, 2019

 (1 comment) (0 reactions) (0 assignees)C# (1,926 forks)batch import
a/bindablelayouta/carouselviewa/flexe/5 :clock5:help wantedinactivep/Androidp/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I have a page with a CarouselView containing a FlexLayout DataTemplate. When I swipe through all the pages of the carousel view and then go back to the beginning, the views on the first and last page are no longer visible. Occurs on Android only.

Workaround

I found that if you nest the FlexLayout in a Grid the pages will stay visible.

Expected Behavior

When swiping back and forth through Carousel Views all views should reappear correctly.

Actual Behavior

Views do not reappear.

Basic Information

  • Version with issue: Xamarin.Forms 4.4.0
  • Platform Target Frameworks:
    • Android: 9.0

Reproduction Link

CarouselBugsRepro.zip

Contributor guide