简体   繁体   English

WPF-其他启动窗口

[英]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: 现在v-studio给我一个错误:

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: 尝试将App.xamlStartupUri替换为现有窗口的有效Uri

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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