Depth of namespaces when using Namingconventions

May 9, 2012 at 4:18 PM

When using NamingConventions with IView/IViewModelLocator, is there a maximum depth.

Example:

Assembly namespace: Application.Client

So full namespace of a view: Application.Client.Views.Houses.Singlehouse.House

I've noticed adding NamingConventions up to 2 levels in depth work, further on, it doesn't (first one works, second does not).

viewModelLocator.NamingConventions.Add("[UP].[UP].Views.Houses.[VW]ViewModel")

viewModelLocator.NamingConventions.Add("[UP].[UP].Views.Houses.SingleHouse.[VW]ViewModel")

When trying to navigate to a view in the second namespace, I get an error saying the viewmodel and the view are not registered. Problem is, I have been debugging the source code and in fact they are registered.

Is it possible that there's a limit on depth?

May 9, 2012 at 6:24 PM

I know, this is a bug in 3.1 and is already fixed for 3.2. If you download the latest source, you can have unlimited [UP] constants.