📜  如何在 wpf 中使按钮打开窗口 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:23.450000             🧑  作者: Mango

代码示例1
private void Button_Click(object sender, RoutedEventArgs e)
{
    window2 win2 = new window2();
    win2.Show();
    this.Close();
}