码迷,mamicode.com
首页 > 其他好文 > 详细

下拉框-ComboBox

时间:2016-10-01 12:32:56      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:

 

<ComboBox Name="cbBox" SelectionChanged="cbBox_SelectionChanged"></ComboBox>

 

ComboBoxItem item = new ComboBoxItem();
item.Name = voice.DisplayName;
item.Tag = voice;
item.Content = voice.DisplayName + " (Language: " + voice.Language + ")";
cbBox.Items.Add(item);

 

private void cbBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{

  ComboBoxItem item = (ComboBoxItem)(cbBox.SelectedItem);

}

下拉框-ComboBox

标签:

原文地址:http://www.cnblogs.com/ansen312/p/5925650.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!