8,735
社区成员
发帖
与我相关
我的任务
分享
<ComboBox Margin="31,0,68,-66" VerticalAlignment="Bottom" Height="29" Grid.Row="1" DropDownClosed="ComboBox_DropDownClosed">
<ComboBox.Items>
<ComboBoxItem>1111111111</ComboBoxItem>
<ComboBoxItem>2222222222</ComboBoxItem>
<ComboBoxItem>3333333333</ComboBoxItem>
<ComboBoxItem>4444444444</ComboBoxItem>
<ComboBoxItem>5555555555</ComboBoxItem>
</ComboBox.Items>
</ComboBox>
private void ComboBox_DropDownClosed(object sender, EventArgs e)
{
ComboBox cb = sender as ComboBox;
MessageBox.Show(cb.Text);
}