I have created control template for HeaderLabelArea.
[ Followed example FeatureBrowser/XamDataGrid/Themes & Custom Styles - Custom HeaderLabelArea Style]
I want to give different background color to HeaderPrefixArea
No matter what i do, headerprefix background not changed
You can try with the following style:
<Style TargetType="{x:Type idDP:HeaderPrefixArea}"> <Setter Property="Visibility" Value="Visible"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type idDP:HeaderPrefixArea}"> <Grid Background="Red"> <ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"/> </Grid> </ControlTemplate> </Setter.Value> </Setter></Style>
I hope this helps
Vlad