I am trying to change the selected tab's background color. I've managed to do this the following code, but when i run the project, I can't select any tabs at all. Nothing happens when I click a tab.
<
Window.Resources
>
<
Style
TargetType
=
"{x:Type telerik:RadTabItem}"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:RadTabItem}"
>
<
Grid
>
<
Border
Name
=
"Border"
Background
=
"LightBlue"
BorderBrush
=
"Black"
BorderThickness
=
"1,1,1,1"
CornerRadius
=
"6,6,0,0"
>
<
ContentPresenter
x:Name
=
"ContentSite"
Margin
=
"12,2,12,2"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
ContentSource
=
"Header"
/>
</
Border
>
</
Grid
>
<
ControlTemplate.Triggers
>
<
Trigger
Property
=
"IsSelected"
Value
=
"True"
>
<
Setter
TargetName
=
"Border"
Property
=
"Background"
Value
=
"LightBlue"
/>
</
Trigger
>
<
Trigger
Property
=
"IsSelected"
Value
=
"False"
>
<
Setter
TargetName
=
"Border"
Property
=
"Background"
Value
=
"LightGray"
/>
</
Trigger
>
</
ControlTemplate.Triggers
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
Window.Resources
>