Prism basic questions:

Topics: Prism v4 - WPF 4
Feb 24, 2015 at 4:55 AM
Hi,

I'm very new to PRISM. I've following questions.
  1. Can an application using Prism be created without Module?
  2. How to navigate from one region to another region?
  3. We say View is part of User Interface. Then how and where do we combine the views and show in the User Interface?
Kindly for the response.

Thanks,
Santosh
Feb 24, 2015 at 11:07 AM
Hi Santosh,
Welcome to Prism! (Minor nit - it is Prism, not PRISM - not an acronym for anything)
  1. Absolutely. You can benefit from leveraging pretty much all the other features like the MVVM support with BindableBase, ViewModelLocator, Commands, PubSubEvents, Regions, Navigation, without using modules at all. Modules are intended to help you break up the functionality of your app into loosely coupled pieces, which can be useful in maintenance, but is primarily an extensibility mechanism, so you don't have to use it if you are ok with all of your functionality being compiled into your app at deployment time.
  2. Navigation is a feature within a single region - it is a way of swapping or selecting views (depending on the container control on the region) within the region to achieve navigation from a user's perspective. I'm not clear what you mean by navigating from one region to another - a region is a container within which views are swapped. You can nest regions - so you can load a view into a region at the shell level for example, and then have a region inside that view in which you navigate. But it is not really navigating between regions.
  3. You can combine views in a hierarchy following the MVVM pattern alone (parent views contain child views up to the shell which is the parent view of them all, and each view can have a view model), or you can use the Regions feature to dynamically plug in child views into containing parent views.
Hope that helps. Recommend you check out Brian Lagunas' intro course on Prism on Pluralsight and mine on Prism for Windows Runtime (if you are going to be doing Windows Store apps):
http://www.pluralsight.com/courses/prism-introduction
http://www.pluralsight.com/courses/building-windows-store-business-applications-prism
http://www.pluralsight.com/courses/prism-50-whats-new

If you don't have a Pluralsight subscription, contact me brian.noyes on gmail and I can get you a one month trial.
Thanks
Brian
Feb 25, 2015 at 3:43 AM
Thank you very much Brian. Sure, I'll contact on gmail for Pluralsight subscription.