sorry for the noob question, how you determine which view loads first?

Topics: Prism v4 - Silverlight 4
Jul 19, 2011 at 5:59 AM

Hello All,

Noob question...

I am looking at Prism V4 with Silverlight 4, and I am looking at the Stock Trader Implementation,  how does that application determine which view to load first?  

Jul 19, 2011 at 2:48 PM


For views added to regions using the View Discovery approach (using the ViewExport attribute or the RegisterViewWithRegion method), the order isn't determined programatically; the views are added to the regions as soon as the regions are created (that is, when the control that hosts the region is added to the visual tree).

For views added with View Injection, the views are added in the order in which the Region.Add method is called to add them. This also applies for views added to regions via navigation (using the Region.RequestNavigate method).

You can read more about this in the following chapters from the Prism MSDN documentation:

I hope you find this helpful.

Guido Leandro Maliandi