Problem with handling custom conventions - views and view models are in separated assembly

Topics: Conventions, Getting Started
Jul 19, 2013 at 9:23 AM
Edited Jul 21, 2013 at 11:15 AM
I have ShellView and ShellViewModel in single assembly named MyApp.Shell.

ViewModel:
namespace MyApp.Shell.ViewModels
{
    public class ShellViewModel : Conductor<IScreen>.Collection.AllActive, IShellViewModel
    {
        public IMenuViewModel Menu { get; set; }

    }
}
View:
namespace MyApp.Shell.Views
{
    /// <summary>
    /// Interaction logic for ShellView.xaml
    /// </summary>
    public partial class ShellView : Window
    {
        public ShellView()
        {
            InitializeComponent();
        }
    }
}
In another assembly named MyApp.MenuViewModel I have part MenuViewModel.
namespace MyApp.MenuViewModel.ViewModels
{
    public class MenuViewModel : Screen, IMenuViewModel
    {
         
    }
}
And in third assembly named MyApp.MenuView I have part MenuView.
namespace MyApp.MenuView.Views
{
    /// <summary>
    /// Interaction logic for MenuView.xaml
    /// </summary>
    public partial class MenuView : UserControl
    {
        public MenuView()
        {
            InitializeComponent();
        }
    }
}
I tried map namespaces in method Configure method in bootstraper:

My goal is translate namespace MyApp.MenuView.Views -> MyApp.Shell.Views
                 ViewLocator.AddSubNamespaceMapping("MyApp.*.Views", "Shell");
and translate namespace MyApp.MenuViewModel.ViewModels -> MyApp.Shell.ViewModels
        ViewModelLocator.AddSubNamespaceMapping("MyApp.*.ViewModels", "Shell");
but when I run app I got error:

Can not find view for MyApp.MenuViewModel.ViewModels. MenuViewModel


What is wrong ? Or how can I find root of namespace problem?

I upload my solution here: http://www.4shared.com/rar/yaPwUV6d/App.html

Coudl anybody help me. I can not find what is wrong.

Thank you