8 lines of sample code

Topics: Prism v4 - WPF 4
Jan 16, 2014 at 12:53 PM
I an new to prism. Obviously I want to learn best practice. Now just be clear, I have read a few articles already but I am still missing a good example, short as well that works and applies best practices.

So could some please help me out. 8 lines of code 10 at most that show how to achieve Dependency Injection with prism.

Thank you
Jan 16, 2014 at 2:23 PM
Hello mathiasbanda,

I am glad to hear you want to use Prism and apply best practices also. I don't know if you have already read it, but you may find helpful the Prism documentation with QuickStarts applying best practices in the following link:

Regarding the short sample that you are asking, I think you would find helpful the HelloWorld QuickStart solution which shows how Dependency Injection would work with Module projects. It has the most simple code by configuring the Bootstrapper class and one separate Module with a particular View page.

You can find the HelloWorld sample in the QuickStarts folder which you can download on the following source code link:

I hope this helped you,

Gabriel Ostrowsky
Marked as answer by mathiasbanda on 1/16/2014 at 7:13 AM
Jan 16, 2014 at 3:14 PM
Found it and it's great thank you so much. Now it's all making sense!