c# - 在WPF应用程序中找不到Startupuri

标签 c# .net wpf user-interface mvvm

我需要有关此问题的帮助

我需要将启动 View Home.xaml放入,但是当我运行该应用程序时出现错误,表明未找到 View Home

  • 此错误的原因是什么?
  • 我该如何解决?
  • 最佳答案

  • StartupUri是来自App.xaml的相对URI。另外,它不是 namespace /类路径,而是文件夹路径。
  • StartupUri =“View/Home.xaml”应该做到。
  • 关于c# - 在WPF应用程序中找不到Startupuri,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21403004/

    相关文章:

    c# - NSwag MSBuild "The method ' get' on path '/api/Account' 已注册多次”

    c# - 为什么 Any() 不适用于 c# 空对象

    c# - 如何在 .NET Core 3.0 中为 WPF 应用程序引用 System.Windows.Forms?

    c# - Null coalescing operator 给 Specified cast is not valid int to short

    c# - WPF 自定义控件(多选组合框)的问题

    c# - WPF框架如何处理MVVM中属性的循环更新?

    c# - 在 .NET C# 中集成 Python 脚本

    c# - 像在 Ruby 中一样在 C# 中使用 yield

    c# - 验证电话号码 C#

    c# - 无法解析 ASP.NET Core 2.0 中的 DbContext