I think I boiled down my earlier problem to the simplest example possible:
<Window x:Class="TestApp.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:igDock="http://infragistics.com/DockManager" xmlns:local="clr-namespace:TestApp" Title="Window1" Height="600" Width="800"> <Grid> <igDock:XamDockManager> <igDock:XamDockManager.Panes> <igDock:SplitPane SplitterOrientation="Vertical"> <igDock:ContentPane Header="Pane 1"> <RichTextBox VerticalScrollBarVisibility="Auto"/> <!--<Label>Screwed up!</Label>--> </igDock:ContentPane> <igDock:ContentPane Header="Pane 2"> <RichTextBox VerticalScrollBarVisibility="Auto" /> </igDock:ContentPane> </igDock:SplitPane> </igDock:XamDockManager.Panes> </igDock:XamDockManager> </Grid></Window>
If you replace the RichTextBox in Pane 1 by the Label, the spacing of the split window gets hosed up. What is going on?
Please see my reply to your other post.
Hi Andrew, thanks for the reply! I read your other post, and while I understand why this happens as you describe: the root split pane, gets a default initial location of DockedLeft- which should still be okay. And the pane takes the available space requested by the controls in the ratios requested.
But I still have no idea how to actually fix the problem.
But using the snippet of code I have here, how can I actually have the pane stretch properly?
nicros said: But using the snippet of code I have here, how can I actually have the pane stretch properly?