WPF打开Windows和Page的方法

2024-04-23 19:09:20 浏览数 (2)

打开Page

代码语言:javascript复制
            NavigationWindow window = new NavigationWindow();
            window.Source = new Uri("Page1.xaml", UriKind.Relative);
            window.Show();

打开Windows

代码语言:javascript复制
            EditGateLIst gatel = new WpfApplication1.EditGateLIst();
            gatel.ShowDialog();

假设Windows的类名称为gate1

0 人点赞