组合框文本在Silverlight中不可见 [英] combobox text is invisible in silverlight

查看:88
本文介绍了组合框文本在Silverlight中不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在comobox中,当我们从列表进行绑定时,我们获取的是值,但无法在combobox中直观地看到文本.

Hi,
In comobox when we are binding from a list we are getting the values but are not able to see the text visually in combobox.

<ComboBox Height="23" HorizontalAlignment="Center" Name="comboidentified"   VerticalAlignment="Top" Width="154" TabIndex="10" Margin="132,419,354,0" />


我们将其绑定:


and we are binding it:

List<custIdentifiedtype> custident = new List<custIdentifiedtype>();
custident = e.Result;
comboidentified.ItemsSource = custident;
comboidentified.DisplayMemberPath = "Cust_Identifeiddesc";
comboidentified.SelectedValuePath = "Cust_Typeid";


谢谢,
swapna


Thanks,
swapna

推荐答案

由OP自己解决.

发表者:
是的,我明白了.代替:
comboidentified.DisplayMemberPath = "Cust_Identifeiddesc";应为Cust_Identifieddesc
Resolved by OP himself.

Posted by OP:
Ya I Got it. Instead of:
comboidentified.DisplayMemberPath = "Cust_Identifeiddesc";it should be Cust_Identifieddesc


这篇关于组合框文本在Silverlight中不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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