[ACCEPTED]-Change background color of header in WPF expander-expander

Accepted answer
Score: 13

here you go, this should do the trick.... You 2 should set the width of the header template 1 to the width of the expander.

<Expander Name="expOneDay" 
          HorizontalContentAlignment="Stretch" Width="Auto">
     <Expander.Header >
          <Border Background="Bisque">
               <TextBlock Foreground="White" Text="Steve" 
                          Width="{Binding ElementName=expOneDay, Path=ActualWidth}"
                          HorizontalAlignment="Stretch" />

More Related questions