In a follow up from this thread http://www.telerik.com/forums/how-do-i-change-border-color-in-cell-style-selector I need to set both the border and the background of the cell using a cellstyleselector. This is the style so far...
<
Style
x:Key
=
"IsEventStyle"
TargetType
=
"telerik:GridViewCell"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"telerik:GridViewCell"
>
<
Border
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
>
<
ContentPresenter
Content
=
"{TemplateBinding Content}"
ContentTemplate
=
"{TemplateBinding ContentTemplate}"
/>
</
Border
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"BorderThickness"
Value
=
"0.5,1,0.5,1"
></
Setter
>
<
Setter
Property
=
"Margin"
Value
=
"0,1,0,1"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"Navy"
></
Setter
>
<
Setter
Property
=
"VerticalAlignment"
Value
=
"Stretch"
/>
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Stretch"
/>
<
Setter
Property
=
"Background"
Value
=
"PapayaWhip"
/>
</
Style
>
The last setter (background) has no effect..
Any help will be appreciated.