Bug 51678 - Previewer doesn't understand Picker ItemsSource property
Summary: Previewer doesn't understand Picker ItemsSource property
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Xamarin.Forms Previewer ()
Version: 4.3.0 (C9)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-01-20 23:45 UTC by David Ortinau [MSFT]
Modified: 2017-01-21 00:31 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

environment notes (2.57 KB, text/plain)
2017-01-20 23:45 UTC, David Ortinau [MSFT]
logs (10.21 KB, application/x-zip-compressed)
2017-01-20 23:46 UTC, David Ortinau [MSFT]
project (6.51 MB, application/x-zip-compressed)
2017-01-21 00:27 UTC, David Ortinau [MSFT]

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description David Ortinau [MSFT] 2017-01-20 23:45:56 UTC
Created attachment 19421 [details]
environment notes

Xamarin.Forms recently has added a bindable Picker implementation in When present, the previewer shows the error "an exception occurred while rendering the control" and the error is that ItemsSource is an unknown property.

I would expect it would gracefully ignore a property it doesn't understand.

ItemsSource is a valid property and was in 2.3.3 as well. Now it's bindable.
Comment 1 David Ortinau [MSFT] 2017-01-20 23:46:14 UTC
Created attachment 19422 [details]
Comment 2 David Ortinau [MSFT] 2017-01-21 00:27:34 UTC
Created attachment 19432 [details]

Project attached, but I removed the ItemsSource="{Binding States}" from the registration form xaml. To see the error just add it back.
Comment 3 Alan McGovern 2017-01-21 00:28:03 UTC
Are you sure the nuget in your android project is set to the correct version? Can you attach the project?
Comment 4 Alan McGovern 2017-01-21 00:31:11 UTC
You need to update your forms version. Your projects are using 2.3.2 and that version definitely does not contain an `ItemsSource` property for objects of type `Xamarin.Forms.Picker`