打开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