Carouselview resets after app opened from background.

Abraham John 111 Reputation points
2021-04-14T13:37:44.367+00:00

I've a
CarouselView
in main page and when ever the app is reopened from app background, the position of
CarouselView
always change to first carousel page position.

Why this happening?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
{count} votes

Accepted answer
  1. JessieZhang-MSFT 7,706 Reputation points Microsoft Vendor
    2021-04-15T06:50:04.777+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Hello, Welcome to Microsoft Q&A!

    I couldn't see the detail of your code ,but as a test, after I tested the official sample Xamarin.Forms - CarouselView, it works properly.

    When I scrolled to an item and pressed the home button on our mobile , and then come back, it still display the last item we scrolled to. You can check page VerticalTemplateLayoutPage.xaml and the MonkeysViewModel.

    For more about this, you can check: https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/carouselview/layout .

    Best Regards,

    Jessie Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.
    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 additional answers

Sort by: Most helpful