This question is locked. New answers and comments are not allowed.
Hi, I'm trying to change the background color of the cells shown in a RadGridView GroupPanel, using the Metro theme.
After reading the documentation I tried this approach:
<
UserControl
x:Class
=
"SampleApp.MainPage"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
>
<
UserControl.Resources
>
<
Style
x:Key
=
"MyGroupPanelItemStyle"
TargetType
=
"telerik:GridViewGroupPanelItem"
>
<
Setter
Property
=
"Background"
Value
=
"Red"
/>
<
Setter
Property
=
"Foreground"
Value
=
"Green"
/>
</
Style
>
</
UserControl.Resources
>
<
Grid
x:Name
=
"LayoutRoot"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
telerik:RadGridView
ShowGroupPanel
=
"True"
AutoGenerateColumns
=
"True"
ItemsSource
=
"{Binding Items}"
GroupPanelItemStyle
=
"{StaticResource MyGroupPanelItemStyle}"
/>
</
Grid
>
</
UserControl
>
But this doesn't work - the style doesn't appear to be applied at all.
How do I target the style of these items? What am I missing?
Thanks,
Sam