利用数据绑定实现
Binding binding = new Binding();
binding.Source = window1.listView1;
binding.Path = new PropertyPath("SelectedItem");
binding.Mode = BindingMode.OneWay;
window2.textBox1.SetBinding(TextBox.TextProperty, binding);