This project is read-only.

Initial ResizeWith for DocumentPaneResizingPanel

Apr 1, 2009 at 9:11 AM

I'm trying to create a DockingManager containing an horizontal DocumentPaneResizingPanel which contains two DocumentPanes that have to be displayed side by side.
What I want is my DocumentPaneResizingPanel to be split in two parts of the same width (one part for each DocumentPane).
As the DocumentPaneResizingPanel's width depends of the screen's width, I can't use a fixed number to set my DocumentPanes' ResizeWidth property.

So I tried to use this code :

     ResizingPanel.SetResizeWidth(myDocumentPane, myDockingManager.ActualWidth / 2);

as the last row of my UserControl's constructor, but myDockingManager.ActualWidth value is 0, as well as every other width/size (Width, DesiredSize, RenderSize).

So my question is : is there a way to split my DocumentPaneResizingPanel in two parts that have the same ResizeWidth ?

Thanks a lot.
Apr 1, 2009 at 9:19 AM
Alright, I'm just not really awake...
I just needed to call the ResizingPanel.SetResizeWidth(...) in the Loaded event of my UserControl.

Sorry for this useless post...