question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CarouselView current item isn't changing

See original GitHub issue

Description

In my case, I need to change position of the current element using a button. When the button is pressed, the position should simply increment. The problem is that when I press the button, nothing happens. But after swiping to change the position, pressing the button works fine as expected.

I tried only on Android

Steps to Reproduce

  1. Run project that is in reproduction project repository.
  2. After starting app press button ‘Next’ without swiping items in cariusel before clicking button.
  3. Observe the bug.

Expected outcome: current item of carousel is changings after button click Actual outcome: current iten isn’t changing

Link to public reproduction project repository

https://github.com/vladPanasiuk/CarouselViewLoopBugReproduction

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android 13

Did you find any workaround?

After hours of experiments, I noticed that it only is reproducing when Loop="False". So Loop="True" fixes it, but this workaround isn’t fine because I need to disable looping.

Relevant log output

No response

Issue Analytics

  • State:open
  • Created 9 months ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
msftbot[bot]commented, Dec 14, 2022

Hi @vladPanasiuk. We have added the “s/needs-repro” label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

0reactions
homeyfcommented, Jun 6, 2023

Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0. Can repro on Android platform with sample project. https://github.com/vladPanasiuk/CarouselViewLoopBugReproduction image

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] Setting CarouselView.CurrentItem to an item doesn't ...
I have the CurrentItem and Position shown below the CarouselView and they appear to be changing correctly, then going back to the previous ......
Read more >
Xamarin Forms CarouselView update property of current item
I have a CarouselView which is working and underneath is a panel of option buttons that apply to the current item in the...
Read more >
Xamarin.Forms CarouselView Interaction
CarouselView defines a CurrentItemChanged event that's fired when the CurrentItem property changes, either due to user scrolling, ...
Read more >
Binding current Item for Carousel of Content Views (held in ...
I have INotifyPropertyChanged implemented on the model class where my ObservableCollection is created so when the CurrentItem and ...
Read more >
Mastering Bootstrap: A Beginner's Guide - Google Books Result
They call the caller as soon as the change is made but before it is completed. ... carousel instance with various settings and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found