How can I us CustomTabItem with the CAL:RegionManager

Topics: Prism v1
Mar 28, 2009 at 3:05 AM
I'd like to use a customTabItem that provides a close button (

I've confused, however, on how I can use this with the CAL:RagionManager.

This is a snippet of the XAML where I defined my region

                    ItemContainerStyle="{StaticResource HeaderStyle}"

Can I use my closeable tab item since the adapter automatically creates TabItems for each new view that is loaded?
I was hoping to insert something like: 
<myCustomControl:CloseableTabItem> </myCustomControl:CloseableTabItem>
I've got a bit of a tight deadline so any help is very welcome.

Mar 30, 2009 at 5:49 PM
Edited Mar 30, 2009 at 5:51 PM

Hi Tracy,


The way in which you will be able to accomplish this is using a CustomTabControl that adds your CustomTabItems instead of ordinary tab items or using templates. The reason for this, is that the WPF Tabcontol handles the creation of the TabItems directly, and the CAL does not have any control over this process. So you could create your own TabControl or get an existing one from the Web (there must be a lot lying around) or create your own templates.


The following threads from this forum deal with similar situations:


Closeable TabItem

·         SelectorRegionAdapter - How is the child item type determined?


Please let me know if this helps.


Damian Schenkelman