NavigationWindow window = new NavigationWindow();
window.Source = new Uri("Page1.xaml", UriKind.Relative);
window.Show();
EditGateLIst gatel = new WpfApplication1.EditGateLIst();
gatel.ShowDialog();
假设Windows的类名称为gate1