更新时间:2023-10-07 08:38:40
XLabs提供了一个很好的可绑定选择器示例,我已在多个项目中使用它来产生巨大影响:
https://github.com/XLabs/Xamarin-Forms-Labs
这将允许您复制Listview的"ItemsSource"功能.
I need to create states picker in my Xamarin Forms. I am using Xaml file for creating views.
Can any one help me to bind Picker in Xaml with item source?
The XLabs has an excellent example of a bindable picker that I have used in several projects to great affect:
https://github.com/XLabs/Xamarin-Forms-Labs
This will allow you to replicate the 'ItemsSource' functionality of the Listview.