I have this working for properties of the GroupHeaderRow. How do I change the text of the header row?
Property="Header" Value = "{}{0} test" and Property="Content" Value = "{}{0} test" dont seems to do anything.
public class GroupRowStyleSelector : StyleSelector
{
public override Style SelectStyle(object item, DependencyObject container)
{
var group = item as QueryableCollectionViewGroup;
if (group.count > 1)
{
return BigGroupStyle;
}
else
{
return SmallGroupStyle;
}
}
public Style BigGroupStyle { get; set; }
public Style SmallGroupStyle { get; set; }
}
<Window.Resources>
<local:GroupRowStyleSelector x:Key="GroupRowStyleSelector">
<local:GroupRowStyleSelector.BigGroupStyle>
<Style TargetType="telerik:GroupHeaderRow">
<Setter Property="Background" Value="Red" />
</Style>
</local:GroupRowStyleSelector.BigGroupStyle>
<local:GroupRowStyleSelector.SmallGroupStyle>
<Style TargetType="telerik:GroupHeaderRow">
<Setter Property="Background" Value="Yellow" />
</Style>
</local:GroupRowStyleSelector.SmallGroupStyle>
</local:GroupRowStyleSelector>
</Window.Resources>