In this stream, we finish up our Modules slide deck, and then move onto the next module in our Pluralsight course; View Composition. View Composition in Prism is all about getting views into regions. There are two types of view composition in Prism; View Discovery and View Injection.

View Discovery is when you register a view with a region, using the RegionManager.RegsterViewWithRegion method, putting the responsibility of creating the view and adding that view into the region on the Region itself. You have no control over the view creation process.

View Injection is when you are responsible for all aspects of adding the view to the region. You must create the view, you must manually get the proper region, you must add the view instance to the region, you must activate/deactivate the region, and you must manually remove the region. Everything is your responsibility.

Brian Lagunas

View all posts

Follow Me

Follow me on Twitter, subscribe to my YouTube channel, and watch me stream live on Twitch.