How to create a Region to display two tabcontrol ?

Topics: Prism v2 - WPF 3.5, Prism v2 - WPF 4
Sep 2, 2010 at 7:00 PM

I am developing a Integration project which will sync data between two application. Here is my project detail :

ModuleA -> SettingsView, InvoiceView , PaymentsView.

ModuleB ->SettingsView

I am planning to create two region in the Shell called, MainRegion (TabControl) and MenuRegion. Menu Region will have two buttons called Settings and Sync, when the user clicks Setting Menu, i need SettingsView from both Module should be displayed and if he clicks Sync i need InvoiceView and PaymentsView needs to displayed in the tabcontrol.

Please help me how to design the UI.

Thanks for you time.

Ramesh

Sep 7, 2010 at 11:56 PM

Ramesh,

You can use the EventAggregator to send messages to your two regions when a Button is clicked.  There is an EventAggreation quick start in the download that will get you started.

As far as this requirement, "Sync i need InvoiceView and PaymentsView needs to displayed in the tabcontrol." have a look at the Stock Trader RI.  This uses a TabControl that is a region and does what I think you are trying to accomplish.

Have a great day,

Karl