我使用的是Visual Studio2010/ VB / dot net 4.0,在我的左栏中有一个下拉菜单,可以为最终用户切换资源语言。它是这样的:
--------English ------- <<- Engish is always the default top language option
French |
Spanish |
German |
我有一个ComboBox控件,我从Web Service (Asp.Net WebApi 2)获取控件的ItemsSource,其代码如下:
cmb_Class.ItemsSource = from c in Container.Classes select new {ClassID = c.Class_Id};
cmb_Class.DisplayMemberPath = "ClassID";
我使用了DisplayMemberPath,所以我只能得到指定的值。
但,
问题是,当我从下拉菜单中选择一个项,而不是该项时,整字符串将在组合框中显示为选定项。
为了更好地了解我的问题,