简体   繁体   English

个性化Caliburn.Micro视图路径

[英]Personalize Caliburn.Micro Views path

I'm new with caliburn and building a simple app, but i want to change where i put my views 我是使用caliburn创建一个简单的应用程序的新手,但我想改变我的观点

my project look like: 我的项目看起来像:

Project/
  Model/
    ...
  View/
    TestView.xaml
  ViewModel/
    TestViewModel.cs
  App.xaml 
  AppBootstrapper.cs

but with this i get a cannot find view for Project.ViewModel.TextViewModel . 但有了这个我得到一个cannot find view for Project.ViewModel.TextViewModel obviously if I put the view into the same directory, the application works perfectly but i want to cahnge the location where i can configure that? 很明显,如果我将视图放到同一目录中,应用程序可以正常工作,但我想改变我可以配置的位置?

The folders the Views and ViewModels are in are namespace specific. Views和ViewModel所在的文件夹是特定于命名空间的。 Change the folder View to Views and ViewModel to ViewModels, and update the .cs and .xaml for that new namespace. 将文件夹View to Views和ViewModel更改为ViewModel,并更新该新命名空间的.cs和.xaml。

Check this link out for further information: http://caliburnmicro.codeplex.com/wikipage?title=View/ViewModel%20Naming%20Conventions 请查看此链接以获取更多信息: http//caliburnmicro.codeplex.com/wikipage?title = View / ViewModel%20Naming%20Conventions

Specifically, in your case here, header: "Naming Conventions for Namespace of a Type" 具体来说,在这种情况下,标题:“类型命名空间的命名约定”

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

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