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.