Xamarin中的Xamarin Forms Picker Item源绑定 [英] Xamarin Forms Picker Item source binding in Xaml
本文介绍了Xamarin中的Xamarin Forms Picker Item源绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在Xamarin表单中创建状态选择器.我正在使用Xaml文件创建视图.
有人可以帮助我将Xaml中的Picker与项目来源绑定吗?
解决方案
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.
这篇关于Xamarin中的Xamarin Forms Picker Item源绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文