{"action":"opened","issue":{"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/3029","repository_url":"https://api.github.com/repos/xamarin/Xamarin.Forms","labels_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/3029/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/3029/comments","events_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/3029/events","html_url":"https://github.com/xamarin/Xamarin.Forms/issues/3029","id":331868177,"node_id":"MDU6SXNzdWUzMzE4NjgxNzc=","number":3029,"title":"CarouselView doesn't update when SelectedItem is changed","user":{"login":"Magendanz","id":2725343,"node_id":"MDQ6VXNlcjI3MjUzNDM=","avatar_url":"https://avatars2.githubusercontent.com/u/2725343?v=4","gravatar_id":"","url":"https://api.github.com/users/Magendanz","html_url":"https://github.com/Magendanz","followers_url":"https://api.github.com/users/Magendanz/followers","following_url":"https://api.github.com/users/Magendanz/following{/other_user}","gists_url":"https://api.github.com/users/Magendanz/gists{/gist_id}","starred_url":"https://api.github.com/users/Magendanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Magendanz/subscriptions","organizations_url":"https://api.github.com/users/Magendanz/orgs","repos_url":"https://api.github.com/users/Magendanz/repos","events_url":"https://api.github.com/users/Magendanz/events{/privacy}","received_events_url":"https://api.github.com/users/Magendanz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-13T07:09:32Z","updated_at":"2018-06-13T07:09:32Z","closed_at":null,"author_association":"NONE","body":"### Description\r\nThe current implementation of CarouselView in the feature_carouselview branch doesn't update the page or trigger the ItemSelected event when SelectedItem is changed.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Build NuGet package for feature_carousel branch and use it in your project\r\n2. Create a ContentPage with a CarouselView control\r\n3. In the page constructor, set the CarouselView control's ItemsSource and SelectedItem\r\n\r\n### Expected Behavior\r\nLike in a ListView, changing SelectedItem should update the view and trigger the ItemSelected event.\r\n\r\n### Actual Behavior\r\nSelectedItem value is updated, but the change is ignored by the CarouselView control and renderer.\r\n\r\n### Basic Information\r\nChanges to Position are noticed, and so that's the current workaround.  Looking at the source, CarouselViewRenderer.OnElementPropertyChanged() doesn't handle the case where the PropertyName is SelectedItem.  Looks like this was just an oversight.\r\n\r\n- Version with issue:  Xamarin.Forms feature_carouselview branch, View #1882\r\n- Last known good version: New feature\r\n- IDE: VS 2017 v15.7.3\r\n- Platform Target Frameworks:\r\n  - iOS:  11.12.0.4\r\n  - Android: 8.3.3.2\r\n- Android Support Library Version: N/A\r\n- Nuget Packages: N/A\r\n- Affected Devices:: Android & iOS tested"}}
{"actor":{"display_login":"Magendanz"}}