portalstudent
portalstudent

Reputation: 25

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).

Upvotes: 0

Views: 58

Answers (1)

mm8
mm8

Reputation: 169380

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

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

Upvotes: 1

Related Questions