I'm using your TabControl as a region for Prism. It is working fine in most respects, but I can't figure out how to set the header. I've seen some related posts on this, but can't quite work it out. I've associated the tab control with a region "Main" and host a view in it thusly:
var mainRegion = _regionManager.Regions[RegionNames.Main];
var workView = _container.Resolve<MultiWorkspaceView>();
mainRegion.Add(workView);
mainRegion.Activate(workView);
I added a property to MultiWorkspaceView called Title. It seems to me that the context of the tab would be the view that is being hosted, but it seems not. This doesn't work:
<telerik:RadTabControl Grid.Row="1"
x:Name="MainTabControl"
prism:RegionManager.RegionName="{x:Static inf:RegionNames.Main}">
<telerik:RadTabControl.ItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Title, diag:PresentationTraceSources.TraceLevel=High}"></TextBlock>
<TextBlock Text="Workspace"></TextBlock>
</StackPanel>
</DataTemplate>
</telerik:RadTabControl.ItemTemplate>
</telerik:RadTabControl>
I can see the Workspace text, but the binding is empty. Any ideas? Thanks!