Hi everyone!
We are just evaluating the actual Q1.2012 Version of Silverlight Controls together with SL5 and ran into a problem using RadTabControl and its ItemContainerStyle. What was working in an older version of this control is no longer working in the actual version.
We created a very simple Style (just for testing purposes):
Then apply this to the RadTabControl like this:
The result is: nothing is shown in the tabheader, it should display "Hello, world!". We tried the same Style with an older version of RadTabControl (2010.3, one of your examples out of this forum) and this one is definetely working.
Any help is very appreciated!
Neils
We are just evaluating the actual Q1.2012 Version of Silverlight Controls together with SL5 and ran into a problem using RadTabControl and its ItemContainerStyle. What was working in an older version of this control is no longer working in the actual version.
We created a very simple Style (just for testing purposes):
<
UserControl.Resources
>
<
Style
x:Key
=
"ClosableStyle"
TargetType
=
"telerik:RadTabItem"
>
<
Setter
Property
=
"HeaderTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
ContentControl
Content
=
"Hello, World!"
/>
</
Grid
>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
UserControl.Resources
>
Then apply this to the RadTabControl like this:
<
StackPanel
>
<
telerik:RadTabControl
Height
=
"200"
ItemContainerStyle
=
"{StaticResource ClosableStyle}"
>
<
telerik:RadTabItem
></
telerik:RadTabItem
>
</
telerik:RadTabControl
>
</
StackPanel
>
The result is: nothing is shown in the tabheader, it should display "Hello, world!". We tried the same Style with an older version of RadTabControl (2010.3, one of your examples out of this forum) and this one is definetely working.
Any help is very appreciated!
Neils