Prism regions - What's the big plus in using them?

Topics: Prism v2 - WPF 3.5, Prism v2 - WPF 4, Prism v4 - Silverlight 4, Prism v4 - WPF 4
Jun 19, 2010 at 6:14 PM
Edited Jun 20, 2010 at 7:05 AM

I understand how to use regions but I'd like to get some feedback on what advantages there are in using the region manager in prism.

Up until now I've been looking at the WPF Application Framework (WAF) that's out on Codeplex. It seems to do everything I need and more but I'm wondering if the capabilities of the framework could be improved by adding in the use of Prism regions.

Thanks in advance,

Richard

Developer
Jun 23, 2010 at 3:02 PM

Hi Richard,

Regions in Prism are used to achieve UI composition. They make it possible to compose multiple elements from independent modules into a single piece of UI, to present a unified view to the user.

A benefit that leads from using them is that a layout can evolve independently without affecting the modules that are adding views to it. That way, you are decoupling layout from functionality. 

You can find a deeper explanation of the aforementioned benefits in these articles from the Prism documentation:

I hope you find this helpful.

Guido Leandro Maliandi
http://blogs.southworks.net/gmaliandi