You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
Updating the ItemsSource on a CarouselView makes the content disappear on Android. I found this issue while investigating #15082. On 5.0.0.2012, updating the ItemsSource causes the Position to stop updating. When I updated to 5.0.0.2337, it also stopped displaying content.
Steps to Reproduce
Create a CarouselView with an ItemsSource set to something.
Hi,
I have same kind of behavior depending on Xamarin form version.
With old Xamarin forms 5.0.0.224 everithing works fine (changing entire itemsource, refresh perfectly view).Since Xamarin forms 5.0.0.2291, strange behavior like described here.
I have made a simple project and i have same behavior.
In the view a simple carousel with label:
<ContentPage.Resources>
</ContentPage.Resources>
in the viewmodel
private ObservableCollection<string> _LesItems;
public ObservableCollection<string> LesItems
{
get { return _LesItems; }
set { _LesItems = value;
OnPropertyChanged();
}
}
Now just add a button in the view with command binding viewmodel doing this:
since Xamarin forms 5.0.0.2291:
First time, everything is good, 6 items are drawn . If you clic again , You will see only 4 items and most of time only 1 item (debug show that "LesItems" contains 6 items but only 1 is drawn)
With old Xamarin forms 5.0.0.224:
It always works fine. No matter number of clic. all items are drawn that should be normal behaviour because each time you clic it must replace collection by next one and drawing all items.
I have to say thank you! THANK YOU!
I stuck in this bug for a week now and didn't realize that i'm using an older XF package version >.<
I also was not able to find this bug here in git. Maybe my wording ...
Thanks again for this fix! :) 👍
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Updating the
ItemsSource
on aCarouselView
makes the content disappear on Android. I found this issue while investigating #15082. On 5.0.0.2012, updating theItemsSource
causes thePosition
to stop updating. When I updated to 5.0.0.2337, it also stopped displaying content.Steps to Reproduce
CarouselView
with anItemsSource
set to something.ItemsSource
to a new value.Expected Behavior
The carousel shows the new content.
Actual Behavior
The carousel is blank
Basic Information
https://github.com/GalaxiaGuy/xf-bugs/tree/bug/broken-carouselview
The text was updated successfully, but these errors were encountered: