问题描述
- 新手,C#wpf跳转窗口,求解决
-
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}private void Button_Click_1(object sender, RoutedEventArgs e) { { Window2 nf=new MainWindow(); nf.ShowDialog(); } { this.Visible = false; Window2 nf = new MainWindow(); nf.ShowDialog(); } } private Object Window2; public bool Visible { get; set; } }
}
时间: 2024-11-08 19:15:54