This project is read-only.

[Version 1.3] problem with showing hidden dockable content again

Mar 19, 2013 at 3:31 AM
Hi,I have a problem with showing hidden dockable content again .

I'm using this code:
    <ad:DockingManager Name="dockingManager" Margin="0,28,0,0">
        <ad:ResizingPanel>
            <ad:ResizingPanel Orientation="Horizontal">
                    <ad:DocumentPane Name="DocPane">
                        <ad:DocumentContent >
                            <TextBox Text="hello,ad"/>
                        </ad:DocumentContent>
                    </ad:DocumentPane>
                </ad:ResizingPanel>
            <ad:ResizingPanel >
                <ad:DockablePane Name="DockAbleP" ad:ResizingPanel.ResizeWidth="*">
                    </ad:DockablePane>
                </ad:ResizingPanel>
         </ad:ResizingPanel>
    </ad:DockingManager>
code for adding DockableContent to DockAbleP is this:
        DockableContent doc1 = new DockableContent() { Title = "pig" };
        TextBox txt = new TextBox();
        txt.Text = "I'm textBox";
        doc1.Content = txt;
        DockAblePane.Items.Add(doc1);
        doc1.Show(dockingManager,AnchorStyle.Bottom);
the 'DocPane' and the 'DockAbleP' each accounted for half of the window.
The problem is when I close the 'DockAbleP' and show it by The above code,'DockAbleP' accounted for a third of the window.
How to make the 'DocPane' and the 'DockAbleP' each accounted for half of the window?