I am trying the change the background color for the GroupHeaderControl. I am able the set the background color but I need to change the color based on its value.
Ex) Element1 --> Element2 --> Element3
Ex) Element1 --> Element2 --> Element3
I need to set the backgroundcolor as green if the text has Element2 in it?<Style TargetType="{x:Type xcdg:GroupHeaderControl}">
Is it possible to change it?
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type xcdg:GroupHeaderControl}">
<Border Background="Orange" BorderThickness="2">
<StackPanel Orientation="Horizontal">
<ContentPresenter/>
</StackPanel>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>