コード例 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            myWindow newWindow = new myWindow();
            var      child     = (TextBlock)newWindow.FindName("txtBlock");

            MessageBox.Show(child.Text);
        }
コード例 #2
0
 public myClass() {
    var window = new myWindow();
    window.Show();
    ExitThread();
 }