(need help) same Modules in different Tabs

Topics: Prism v2 - Silverlight 3
Jan 11, 2010 at 2:58 PM

hi, i have a quite complex SL3 & Prism application.

i have a TabControl, a XAML with 3 regions & 3 modules to go inside each region.

i need to:

1) be able to "open" & "close" tabs dynamically.

2) on each tab have the same XAML host with the same 3 modules.

lets save the open/close for later... how do i add the same 3 modules into my XAML which in turn will be added multiple times to my TabControl?

Jan 11, 2010 at 3:17 PM

You can define three regions (e.g. ItemsControl in each tab) and register the same view with each of the regions. Hope this helps. There are other ways, but this seems to be the easiest.

Jan 11, 2010 at 3:28 PM

i already got a view with 3 regions (lets call it DetailsView), and on each module load i inject the module into its region.

but how do i 'duplicate' and push this DetailsView 6 times into a TabControl?