maui icon indicating copy to clipboard operation
maui copied to clipboard

Problem initializing the CurrentItem for the Carousel

Open mypp74 opened this issue 2 years ago • 5 comments
trafficstars

Description

` public partial class SecondPage : ContentPage, IQueryAttributable { public SecondPage() { InitializeComponent(); BindingContext = new ViewModel(); }

public void ApplyQueryAttributes(IDictionary<string, object> query)
{
    if (BindingContext is ViewModel model)
    {
        model.Items = [
            "1",
            "2",
            "3"
        ];

        // Android : works as expected
        // iOS: "2" is ignored. 
        model.CurrentItem = "2";
    }
}

} Carousel_CurrentItem.zip

`

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iPhone 15 iOS 17.0

Did you find any workaround?

No response

Relevant log output

No response

mypp74 avatar Nov 19 '23 09:11 mypp74

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

ghost avatar Nov 20 '23 15:11 ghost

Verified this on Visual Studio Enterprise 17.9.0 Preview 2(8.0.3). Repro on iOS 17.0 and MacCatalyst, not repro on Windows 11 and Android 14.0-API34 with below Project: MauiApp2.zip

XamlTest avatar Dec 20 '23 10:12 XamlTest

+1 encountered this too - another Carousel bug. This control is clearly alpha quality.

RobTF avatar Feb 06 '24 23:02 RobTF

+1, this makes the carousel near unusable on iOS as I was controlling the visible elements by setting CurrentItem

TheresasAccount avatar Apr 30 '24 20:04 TheresasAccount

Potentially related #17283

TheresasAccount avatar May 01 '24 14:05 TheresasAccount