0

I'm trying to create a global style for Expander in WPF.

This is what I achieved so far:

<Style TargetType="Expander">
    <Setter Property="HeaderTemplate">
        <Setter.Value>
            <DataTemplate>
                <Border Background="Red">
                    <ContentControl Content="{Binding}" />
                </Border>
            </DataTemplate>
        </Setter.Value>
    </Setter>
</Style>

And this is how it looks:

currently looking like this

Not very satisfying.

Question: How can I change the background color of the entire Expander header in App.xaml?

bytecode77
  • 14,163
  • 30
  • 110
  • 141

0 Answers0