I have 3 Expanders inside a StackPanel. Everything is working perfectly except that when I expand any of the expanders, the expander header is moved from the center of the StackPanel to the far left side. Once I collapse it, it goes back to the center. How can I get the expander header to remain centered?
Expander markup:
<Expander Header="My Header" Height="Auto" HorizontalAlignment="Center">
...
</Expander>