显示listboxItem选中项的文字的问题
private void button1_Click(object sender, RoutedEventArgs e)
{
//MessageBox.Show(listBox1.Items[listBox1.SelectedIndex].ToString());
int i=Convert.ToInt32(this.listBox1.SelectedIndex.ToString());
string a = this.listBox1.Items[i].ToString();
this.textBox1.Text = a;
//[listBox1.SelectedIndex].ToString());
}