WPF_ open a new window

Page

Window = NavigationWindow new new NavigationWindow (); 
window.Source = new new Uri ( " MainWindow1.xaml " , UriKind.Relative);
 // mainwindow.ShowDialog (); // mode, pop! 
window.Show (); // no pattern, pop!

Window

            AddPersional = AddPersional new new AddPersional (); // this is the class of the new window 
            addPersional.Title = " new equipment responsible person " ;           // Here you can rename the new window 
            addPersional.Show ();                             // no pattern, pop!

Guess you like

Origin www.cnblogs.com/shyw/p/12124497.html