I created the following style:
Everything works perfectly except this line:
So, how can I set the background color of a selected row?
<
Style
TargetType
=
"telerik:GridViewRow"
BasedOn
=
"{StaticResource {x:Type telerik:GridViewRow}}"
>
<
Setter
Property
=
"Background"
Value
=
"LightGray"
/>
<
Style.Triggers
>
<
Trigger
Property
=
"IsSelected"
Value
=
"True"
>
<
Setter
Property
=
"Background"
Value
=
"CornflowerBlue"
/>
<
Setter
Property
=
"Foreground"
Value
=
"White"
/>
</
Trigger
>
<
Trigger
Property
=
"IsMouseOver"
Value
=
"True"
>
<
Setter
Property
=
"Background"
Value
=
"LightBlue"
/>
</
Trigger
>
</
Style.Triggers
>
</
Style
>
Everything works perfectly except this line:
<
Setter
Property
=
"Background"
Value
=
"CornflowerBlue"
/>
So, how can I set the background color of a selected row?