private void btn4_Click(object sender, RoutedEventArgs e) { MyListBox lb = new MyListBox(); lb.ShowDialog(); }