set ResizeWidthProperty in C# code

Nov 7, 2011 at 7:54 PM

Hi!

I wat to set the ResizeWidthProperty in my c# Code.

XAML:

    <ad:DockingManager x:Name="DockManager" IsAnimationEnabled="False"  >

        <ad:ResizingPanel Name="ResizingPanel1" Orientation="Horizontal">
            <ad:DockablePane x:Name="dp1">
                <ad:DockableContent x:Name="dc1" IsCloseable="False" />
            </ad:DockablePane>

                <ad:DockablePane x:Name="dp2" ad:ResizingPanel.ResizeWidth="300">
                <ad:DockableContent x:Name="dc2" IsCloseable="False"/>
            </ad:DockablePane>
           
        </ad:ResizingPanel>
    </ad:DockingManager>

 

But How can I set the ResizeWidth in my C# code???

I have tryed this:

dp2.SetValue(ResizingPanel.ResizeWidthProperty, "300");

and via a StaticResources...

but it doesen´t work...

 

THX