title: Add another ViewModelLocator convention in Prism (not override)
body: <p>The project (WPF) has these folders:</p>
  <ul>
  <li>Views</li>
  <li>ViewModels</li>
  <li>SubViews</li>
  <li>SubViewModels</li>
  </ul>
  <p>How to get the Prism's <code>ViewModelLocator</code> working with them (Views&gt; ViewModels &amp; SubViews&gt; SubViewModels), the solution I found only works with one convention:</p>
  <pre><code>protected override void ConfigureViewModelLocator()
  {
      base.ConfigureViewModelLocator();
  
      ViewModelLocationProvider.SetDefaultViewTypeToViewModelTypeResolver((viewType) =&gt;
      {
          var viewName = viewType.FullName.Replace(&quot;.ViewModels.&quot;, &quot;.CustomNamespace.&quot;);
          var viewAssemblyName = viewType.GetTypeInfo().Assembly.FullName;
          var viewModelName = $&quot;{viewName}ViewModel, {viewAssemblyName}&quot;;
          return Type.GetType(viewModelName);
      });
  }
  </code></pre>