How viewmodel gets connect with View

Topics: Prism v4 - Silverlight 4
Jul 20, 2012 at 10:27 AM

Hi to all friends out there .

I have few doubts which i am unable to clear.


1) How viewmodel gets attached with view and how view knows that which viewmodel is attached with it.

2) How to load views in Region of shell.

Please make me clear these doubts if there is example of source code it will be great help.


Thanks in advance.


Jul 20, 2012 at 1:50 PM


I'll try to help you with your concerns:

1) I believe you could find useful information and examples which will help you understand the use of the MVVM pattern in the following chapters of the Prism documentation:

There you can find, that there are various techniques for wiring up a view to a view model, particularly you could find specific information and examples about this in the Construction and Wire-Up and Advanced Construction and Wire-Up sections of the aforementioned chapters.

Also, for additional information and examples regarding the MVVM pattern, I recommend you to check the Karl Shifflett's In the Box training kit  which is a high quality, multi-media training that is consumed within Visual Studio 2010.

2) In my opinion, you could find useful information regarding this topic in this previous thread.


Agustin Adami