第一步: 在 App.xaml 里,把 StartupUri=""去掉,改成  Startup="Application_Startup"

第二步: 在 App.xaml.cs里,增加 Application_Startup 事件:

private void Application_Startup(object sender, StartupEventArgs e)       

 {           

            Application currApp = Application.Current;

            currApp.StartupUri = new Uri("SysSetup.xaml", UriKind.RelativeOrAbsolute);

 }

相关文章: