[ACCEPTED]-Change background color of header in WPF expander-expander
Accepted answer
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"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch" Width="Auto">
<Expander.Header >
<Border Background="Bisque">
<TextBlock Foreground="White" Text="Steve"
Width="{Binding ElementName=expOneDay, Path=ActualWidth}"
HorizontalAlignment="Stretch" />
</Border>
</Expander.Header>
</Expander>
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.