Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Binding to Picker Items

$
0
0

Hi,

I believe it is not possible to Bind in XAML to the Items property of the Picker control.

If this is the case, which is the best approach to populate the Items collection from a ViewModel collection?

I believe it is possible to call the Add method against the Items collection however how might I reference the Picker, as defined in the XAML, in the code behind?

I have tried FindByName however I don't seem to be able to set the Name of the Picker control.

Thanks

Paul Diston


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>