I have a requirement as below in which i have a XamDockManager-->Panes-->SplitPane-->here i have a TabGroupPane and 3 ContentPanes as shown in Code below,I want to have relative Sizeslike first TabGroupPane should occupy 10% of the screen ,Region2(ContentPAne) must occupy aboutnext 50% of the screen etc .how can i acheive this....presently i am getting same height forall the 4 panes<DockPanel> <ig:XamDockManager> <ig:XamDockManager.Panes> <ig:SplitPane x:Name="splitPane" SplitterOrientation="Horizontal"> <ig:TabGroupPane x:Name="Region1"/> <ig:ContentPane x:Name="Region2"> <ItemsControl x:Name="InsideRegion2"/> </ig:ContentPane> <ig:ContentPane x:Name="Region3"> <ItemsControl x:Name="InsideRegion3"/> </ig:ContentPane> <ig:ContentPane x:Name="Region4"> <ItemsControl x:Name="InsideRegion4"/> </ig:ContentPane> </ig:SplitPane> </ig:XamDockManager.Panes> </ig:XamDockManager></DockPanel>
Thanks in Advance
Hello,
The width of these panes has to depend on the ActualWidth of the XamDockManager or your window. On Load, you can check the ActualWidth property of the XamDockManager or Window and set th widths of your panes accordingly. You could also Load a saved layout with the LoadLayout method.
I want to have the Screen Splitted with 3 Splitpanes(with red,blue and BlanchedAlmond Colours)with almost same sizes as shown in following image,I have resized the and taken the screenshot,how can i have this look at load time...
Thanks
You would use the attached SplitPane->RelativeSize property. This is actually demonstrated in the FeatureBrowser help under xamDockManager->Composition Walkthrough->Controlling SplitPane Size Distribution.
Well the documentation is on the GetRelativeSize method (since this is an attached property) although it looks like it needs to be updated. Since this is a Size, I guess it was assumed to be understood that the Width portion affected the horizontal distribution - i.e. the width of the relative size of 1 pane is compared to the width of the relative size of the other pane(s) and that ratio determines the percentage of the width that pane will receive.I agree that the documentation should probably be clearer to indicate that the Width portion is ignored when the children are arranged vertically (each pane is the full width of the split pane) and the Height portion is ignored when the children are arranged horizontally (each pane is the full height of the split pane).
Andrew,
I'm new to Infragistics. The previous guy at my job used Telerik more. I didn't want the bloat so I'm using your tools. The one thing that's driving me crazy is lack of documentation. Specifically in this context, I'm trying to find out ANYWHERE where it explains the two numbers with SplitPane RelativeSize. What's the first? What's the second? WHERE IS THIS DOCUMENTED? (not just a placeholder but an actual explanation of what the numbers do).
Thanks much,
Tim
(sorry for CAPS - deadline clocks ticking...)