I am using PRISM, Telerik Docking and Tabcontrols. I have 2 modules and loaded the two modules in MainContentRegion(
telerikDocking
:RadDocking.DocumentHost) as two tabs.
But the tabs doesnot showing its header value.
I define the Header Style in my Usercontrol Resources and i am getting the below error.
Invalid attribute value {x:Type telerikNavigation:RadTabItem} for property TargetType. [Line: 11 Position: 27]
I am using PRISM, and the MainContentRegion contains one or more tabs.
Here is the code snippet.
<
UserControl
x:Class="PBI.Client.Shell"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Regions="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation"
xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
Height="Auto" Width="Auto">
<
UserControl.Resources>
<Style TargetType="{x:Type telerikNavigation:RadTabItem}" x:Key="HeaderStyle">
<Setter Property="Header"
Value="{Binding RelativeSource={RelativeSource Self}, Path=Content.DataContext.TabHeader}" />
</Style>
</UserControl.Resources>
<!-- Main Content Region -->
<telerikDocking:RadDocking.DocumentHost>
<telerikNavigation:RadTabControl Name="tabMainContentRegion" TabStripPlacement="Bottom"
Regions:RegionManager.RegionName="MainContentRegion"
ItemContainerStyle="{StaticResource HeaderStyle}" >
</telerikNavigation:RadTabControl>
</telerikDocking:RadDocking.DocumentHost>
TabHeader is defined in my Viewmodel class.
The same code works in WPF but not in Silverlight.
Help will be appriciated.
Anwar