title: Prism Navigation: where to register View/ViewModels with UnityContainer?
body: <p>I'm learning how to use the Prism Navigation API and it requires registering your <code>Views</code> (or <code>ViewModels</code> if using ViewModel-first) with the Unity container in the following manner:</p>
  
  <pre><code>Container.RegisterType&lt;object, HomeView&gt;("HomeView");
  </code></pre>
  
  <p>See <a href="http://blogs.msdn.com/b/kashiffl/archive/2011/03/10/prism-4-region-navigation-with-silverlight-frame-navigation-and-unity.aspx" rel="nofollow">this blog post</a> and the <a href="http://msdn.microsoft.com/en-us/library/gg430861%28v=pandp.40%29.aspx" rel="nofollow">MSDN Documentation</a>. The examples I have seen have registered these types in the <code>Bootstrapper</code> class via the <code>ConfigureContainer()</code> method. But some examples register types in the <code>Module</code> classes. My question is: <strong>does it matter where you register these types with the container?</strong></p>
  
  <p>My gut feeling is that registration in the <code>Bootstrapper</code> <code>ConfigureContainer()</code> method will make the registered types available to all <code>Modules</code> while registration in the <code>Module</code> classes will mean those types are only registered in that <code>Module</code>.</p>