Click here to Skip to main content
16,016,744 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Please tell how to make expander control to expand Horizontally from right to left.
I have tried with following Xaml code but it is not working

XML
<canvas height="338" name="canvas1" width="280">
        <expander canvas.left="10" canvas.top="10" header="expander1" height="100" name="expander1" expanddirection="Right">
            <stackpanel height="100" name="stackPanel1" width="200">
                &lt;Button Content="Button" Height="23" Name="button1" Width="75" /&gt;
            </stackpanel>
        </expander>
    </canvas>




please help me out....
Posted
Updated 23-Nov-11 4:59am
v2

1 solution

Try specifying the width to the expander.
<expander canvas.left="10" canvas.top="10" header="expander1" width="250" height="100" name="expander1" expanddirection="Right">


Refer below link for more details if you would like to use grid instead of canvas.
WPF Expander[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900