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 }}
Repository navigation
CurrentItem is updated incorrectly on Android when the CarouselView is bound to an ObservableCollection with Loop = false #35643
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
BindingContext = CreateViewModel();
}
private void Button_Clicked(object sender, EventArgs e)
{
ViewModel? model = BindingContext as ViewModel;
if (model?.Items != null)
{
// we replace the value of item 2 with 2b
// and we update CurrentItem
// Behavior on Android (CarouselView.Loop = false) :
// - If before the change, CurrentItem was equal to "0" or "1", then after the change,
// CurrentItem is equal to "2b": everything is OK
// - If before the change, CurrentItem was equal to "2", then after the change,
// CurrentItem is equal to "0": this is not OK, we expect CurrentItem to be equal to "2b"
model.Items[2] = "2b";
model.CurrentItem = "2b";
}
}
private static ViewModel CreateViewModel()
{
return new()
{
Items = [
"0",
"1",
"2"
],
CurrentItem = "2"
};
}
}
This issue has been validated in Visual Studio Code 1.122.0 with .NET MAUI versions 9.0.51, 9.0.60 and 10.0.70. It was reproducible on Android platform from 9.0.60 version. I have attached the video for reference:
Activity
HarishKumarSF4517 commentedon May 29, 2026
This issue has been validated in Visual Studio Code 1.122.0 with .NET MAUI versions 9.0.51, 9.0.60 and 10.0.70. It was reproducible on Android platform from 9.0.60 version. I have attached the video for reference:
Screen.Recording.2026-05-29.at.12.09.36.PM.mov
Screen.Recording.2026-05-29.at.10.51.04.AM.mov
[Android] Fix for CurrentItem is updated incorrectly when the Carouse…
8 remaining items
Publish reproduction evidence for #35643 on android
[Android] Fix for CurrentItem is updated incorrectly when the Carouse…
[Android] Fix for CurrentItem is updated incorrectly when the Carouse…
[Android] Fix for CurrentItem is updated incorrectly when the Carouse…
[Android] Fix for CurrentItem is updated incorrectly when the Carouse…
[Android] Fix for CurrentItem is updated incorrectly when the Carouse…
[Android] Fix for CurrentItem is updated incorrectly when the Carouse…
[Android] Fix for CurrentItem is updated incorrectly when the Carouse…
[Android] Fix for CurrentItem is updated incorrectly when the Carouse…
[Android] Fix for CurrentItem is updated incorrectly when the Carouse…
[Android] Fix for CurrentItem is updated incorrectly when the Carouse…
[Android] Fix for CurrentItem is updated incorrectly when the Carouse…
[Android] Fix for CurrentItem is updated incorrectly when the Carouse…