如何在Windows Phone中绑定< toolkit:ListPicker [英] How to bind <toolkit:ListPicker in windows phone

查看:59
本文介绍了如何在Windows Phone中绑定< toolkit:ListPicker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何绑定

<toolkit:ListPicker>

?b $ b

我使用下面的代码,但它并没有绑定所有



in windows phone from sqlLite database?

I use below code, but it doesnt bind all

<pre>string strSelect = "SELECT UserTypeID, UserTypeDesc FROM UserTypes";
            _customerEntries = (Application.Current as App).db.SelectObservableCollection<Customer>(strSelect);
            string u = "";
            foreach (Customer data in _customerEntries)
            {
                 
                listUserType.Items.Add(data.UserTypeDesc);
            }

推荐答案

参考 windows-phone-data-binding-listpicker-to-list-of-strings [ ^ ]


这篇关于如何在Windows Phone中绑定&lt; toolkit:ListPicker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆