{"action":"created","issue":{"url":"https://api.github.com/repos/alexrainman/CarouselView/issues/40","repository_url":"https://api.github.com/repos/alexrainman/CarouselView","labels_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/40/comments","events_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/40/events","html_url":"https://github.com/alexrainman/CarouselView/issues/40","id":195679551,"number":40,"title":"SetCurrentPage doesn't work for \"0\" ","user":{"login":"declandowling","id":23724144,"avatar_url":"https://avatars.githubusercontent.com/u/23724144?v=3","gravatar_id":"","url":"https://api.github.com/users/declandowling","html_url":"https://github.com/declandowling","followers_url":"https://api.github.com/users/declandowling/followers","following_url":"https://api.github.com/users/declandowling/following{/other_user}","gists_url":"https://api.github.com/users/declandowling/gists{/gist_id}","starred_url":"https://api.github.com/users/declandowling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/declandowling/subscriptions","organizations_url":"https://api.github.com/users/declandowling/orgs","repos_url":"https://api.github.com/users/declandowling/repos","events_url":"https://api.github.com/users/declandowling/events{/privacy}","received_events_url":"https://api.github.com/users/declandowling/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-12-14T23:53:53Z","updated_at":"2016-12-15T18:14:42Z","closed_at":null,"body":"Hello,\r\n\r\nI am raising an event which is resetting the ItemSource of the CarouselView, each time I want to reset the CurrentPage to the first available (position 0), but I don't seem to be able to. An example of what I am doing is below. \r\n\r\nI am not able to set the current page to 0 each time the item source changes, but I can set the current page to 1, which makes me think that this is a bug.\r\n\r\n```\r\nCarouselView.PageIndicators = false;\r\n\r\nvar data = (IList<MyObject>) sender;\r\nCarouselView.ItemsSource = (IList) data;\r\n\r\nCarouselView.PageIndicators = true;\r\n\r\nif (CarouselView.ItemsSource.Count > 0)\r\n{\r\n        // can set to 1, but not to 0\r\n        CarouselView.SetCurrentPage(0);\r\n}\r\n```\r\n\r\nThanks.\r\n\r\np.s. Nice library, it's been much easier to use than Xamarin's own CarouselView."},"comment":{"url":"https://api.github.com/repos/alexrainman/CarouselView/issues/comments/267400145","html_url":"https://github.com/alexrainman/CarouselView/issues/40#issuecomment-267400145","issue_url":"https://api.github.com/repos/alexrainman/CarouselView/issues/40","id":267400145,"user":{"login":"alexrainman","id":3793554,"avatar_url":"https://avatars.githubusercontent.com/u/3793554?v=3","gravatar_id":"","url":"https://api.github.com/users/alexrainman","html_url":"https://github.com/alexrainman","followers_url":"https://api.github.com/users/alexrainman/followers","following_url":"https://api.github.com/users/alexrainman/following{/other_user}","gists_url":"https://api.github.com/users/alexrainman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexrainman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexrainman/subscriptions","organizations_url":"https://api.github.com/users/alexrainman/orgs","repos_url":"https://api.github.com/users/alexrainman/repos","events_url":"https://api.github.com/users/alexrainman/events{/privacy}","received_events_url":"https://api.github.com/users/alexrainman/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T18:14:42Z","updated_at":"2016-12-15T18:14:42Z","body":"I am releasing a new version that should fix this if its happening."}}
{"actor":{"display_login":"alexrainman"}}