Is it possible with Composite WPF?

Topics: Prism v2 - WPF 3.5
Nov 23, 2009 at 8:21 PM


First of all I want to mention I'm very new to Composite WPF. Currentely I'm developing some buisness app and I want to use Composite WPF. My concept is to have several modules each with different business function (e.g. calendar, invoices, clients etc.). My main window (shell) will have two regions: toolbar region and main region. Each module will have two special views - one with button for toolbar, and second with main module view. Button will be loaded to toolbar region, and main module view should show up in main region when the mentioned before button will be pressed. Only one main module view should be visible at time in main region.

Is it possible to achieve this in Composite WPF, if so give me please some hints how, becouse I've read the documentation several times, but still don't know even if it is possible to use regions and views like this. The only thing I've done is that every module registers button views in menu region so, all buttons shows in toolbar.


Nov 24, 2009 at 5:58 PM

This kind of requirement is solved by the UIComposition implementation in Prism, which allows you to inject views (you can achieve this through View Injection ). In fact, to show this capability Prism provides a Quicktstart, which would probably help you in order to perform this task.

In the Erwin Vandervalk’s blog you can find a post that might be helpful. In this case, the showcased application in the post has a toolbar with buttons and a main region where this application shows different views based on the button clicked.

I hope you can find this answer helpful.

Fernando Antivero

Nov 25, 2009 at 7:37 AM

Yeah. if you are very new to Prism, I should suggest you to go through Quick Start samples first. Once you have done, you would suggest you to create the application and test it while reading the documentation.