简体   繁体   中英

WPF - Other startup window

I have a problem. I'm working on a project with several people. There was a login window that someone installed as the first window that starts aftter you run the application. (not the mainwindow). I deleted that window because we don't need that anymore. Now v-studio gives me an error:

System.IO.IOException: 'Cannot locate resource 'login.xaml'.'

What do I need to adjust so I can get another window to start first when I run the application (not the main window).

Try to replace the StartupUri in App.xaml with a valid Uri to an existing window:

<Application ... 
         StartupUri="MainWindow.xaml" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM