Hi,
I am not aware of the requirements of your scenario or why you want to compose theUI through the use of the EventAggregator, but based on my understanding, inPrism the dynamic composition of the UI is usually done throughRegions. For example, you could define your TabControl as a Region doing something like this:
<TabControlcal:RegionManager.RegionName="TabRegion"/>
Then, in any part of your application, you can dynamically add a TabItemto the TabControl using one of the UI composition approaches of Prism, for example:
this._regionManager.Regions["TabRegion"].Add( tabItem );
You can find more information about Regions in the following chapter of thePrism documentation:
On the other hand, if you need to involve the EventAggregator in the process of composing the UI, you might find the following thread interesting:
At the end of the aforementioned thread, you can find a sample application that portrays the usage of events to change theUI at run-time. This sample uses a ContentControl, but could be adapted for aTabControl easily.
I hope this helps,
Damian Cherubini
http://blogs.southworks.net/dcherubini