Expander button on the right side: how to do it?

Sender picture Sender · Jan 7, 2012 · Viewed 19.7k times · Source

Expander in right side how ?

i want to position the Expander button on the right side of the label. How to do this?

Answer

Ray picture Ray · Sep 10, 2013

You can also set the FlowDirection to RightToLeft, but that may cause other problems. For example it also changes the flow direction for the content of the expander so you may need to set it back.

<Expander FlowDirection="RightToLeft">
     <StackPanel FlowDirection="LeftToRight">
     </StackPanel>
</Expander>