i want to position the Expander button on the right side of the label. How to do this?
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>