Prism Lazy Load View IN _regionManager.RegisterViewWithRegion

Topics: Prism v4 - WPF 4
Jul 29, 2013 at 6:44 AM
Prism how Lazy Load View IN _regionManager.RegisterViewWithRegion ()
Jul 29, 2013 at 1:56 PM
Hi,

Based on my understanding, in order to Lazy Load views in Prism, you have two different options: use view discovery approach or use view injection approach. The view discovery approach (that is, using the RegisterViewWithRegion method) is designed to automatically populate a region, with the corresponding registered views, when the region is available using the AutoPopulateRegionBehavior. If you need to control when a view is going to be "shown" in a region, it's recommended to use the view injection approach (that is, adding a view to a region with the Add method) or use navigation instead.

For more information about this topic, you can visit the following section of the Prism documentation:

Hope this helps,

Federico Martinez
http://blogs.southworks.net/fmartinez