Using Prism libraries in MVVM pattern

Topics: Prism v4 - WPF 4
May 30, 2013 at 9:40 PM

I have read the chapter 2 of online Prism documentation "Initializing Prism Applications" and got more confused. From what I understood so far is that I need to take all the steps of initialization in order to start developing WPF applications or to run them.

The application that I am developing is going to be with only one Module - in other words it's not very large. But I though I would like to follow Prism's guidances as I will be developing with MVVM pattern and using concepts such as Commands, behaviours, Navigation with Prism libraries would make my development easier and better.

But my question is do I need to go though all the Prism Initialization steps (including creating Module Catalogs, Containers etc) as I will not be using things such as Modules ?

Thank you
May 31, 2013 at 1:34 PM
Hello Alex,

In your post you say that your application will use "one Module".
And later that you do not need ModuleCatalog or Container because you "will not be using things such as Modules".

The initialization steps can be simplified by using a personnal class inheriting from Bootstrapper.
You'll just have to override 3 methods and your application will be ready to go.

May 31, 2013 at 4:38 PM
Thanks for your reply Linvi,

Can I confirm few points please:

I do Not need to create Modules in order to use other Prism library classes (This is so that as I mentioned my app is not going to be very large and hence don't need Modules, Or would you rather suggest to have just a one Module) ?

I was also suggested to use MVVM Light toolkit. Then I have found there is at least another called ReactiveUI. From what I understood by doing little online research It seems that Prism library is more robust and thouroughly tested.

Could you please provide your thoughts on the above points ?
May 31, 2013 at 8:34 PM
Hi Alex,

As Linvi mentioned, to start a simple Prism application you only need to override a couple of methods in your Bootstrapper class and configure the application accordingly. You can find a sample of this in the Hello World Quickstart, which you might find useful as a starting point.

Also, you can create a Prism application without requiring using modules. In such case all the components will be contained in your main application project or in class libraries directly referenced by it.


Damian Cherubini
Jun 3, 2013 at 7:02 PM
Thank Damian,

I think I need to go through the quick starts and see how it works first. One thing I've noticed that perhaps not many people using Prism as the traffic here is not very busy.