Carousel view setting default position not working in maui

Satya 85 Reputation points
2023-05-22T06:10:51.5466667+00:00

Carousel view setting default position not scrolling to item on page load in maui.

After data is loaded to carousel view, updating position not working.

                CarouselView.Position = index;
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Liqun Shen (Shanghai Wicresoft Co Ltd) 160 Reputation points Microsoft Vendor
    2023-05-24T02:40:27.05+00:00

    Hello,

    There is a known issue on Github: CarouselView doesn't scroll to the CurrentItem when set. You could follow this thread. Besides, in this thread artyomszasa shares a workaround that can help.

    Best Regards,

     Liqun Shen.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments