Skip to content

CarouselView Loop="False" renders incorrectly items ( net8, net9 rc2) #25192

@bcaceiro

Description

@bcaceiro

Description

Using a CarouselView in a .net maui project ( tested with v8.0.91 & .NET9 RC2) withLoop="False"results in an incorrect render. If we set Loop="True" the items are rendered correctly.

With Loop=True
Imgur Image

Using Loop=False

Imgur Image

It happens in 8.0.92 and in .net 9 rc2
The code can be found here: https://github.com/bcaceiro/net9-repros/tree/main/CarouselBug

Steps to Reproduce

  1. Clone https://github.com/bcaceiro/net9-repros/ -> CarouselBug solution
  2. Run with Loop = True
  3. Run with Loop = False
  4. See the differences in rendering ( false is totally broken)

Link to public reproduction project repository

https://github.com/bcaceiro/net9-repros/tree/main/CarouselBug

Version with bug

9.0.0-rc.1.24453.9

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android 14 ( did not test in others)

Did you find any workaround?

No workaround, just setting Loop="True" which is not the desired effect

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions