0

I'm new with caliburn and building a simple app, but i want to change where i put my views

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

4

1 回答 1

3

Views 和 ViewModels 所在的文件夹是特定于命名空间的。将文件夹 View 更改为 Views,将 ViewModel 更改为 ViewModels,并更新该新命名空间的 .cs 和 .xaml。

查看此链接以获取更多信息: http ://caliburnmicro.codeplex.com/wikipage?title=View/ViewModel%20Naming%20Conventions

具体来说,在您的情况下,标题:“类型命名空间的命名约定”

于 2013-02-13T06:00:51.310 回答