Hi,
I have two panes in the dockmanager and I want to set the upper pane to 75%(3*) and lower pane to 25%(*) height. How to achieve this?
AllowMinimizeFloatingWindows="True" LayoutMode="FillContainer" Theme="Metro">
Hello Ramesh,
Thank you for your post.
Currently, the Height and Width properties of the SplitPane in the XamDockManager are set to be a double type, and so they do not accept * based width and height values. The reason that some controls do accept those values is because they are of the type GridLength, which allows * values.
As a workaround to this, I would recommend binding your SplitPane's Height property to the XamDockManager's ActualHeight property, and using a converter to calculate your * values, where usage of 3* and 1* would be ActualHeight * .75 and ActualHeight * .25, respectively. I have attached a sample project that demonstrates how this could be achieved.
If you would like to see SplitPane height and widths changed to support * values in the future, I would recommend suggesting a new product idea for this feature at http://ideas.infragistics.com. This product ideas site places you in direct communication with our product management teams who plan and prioritize upcoming products and features.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
<dockManager:XamDockManager AllowMaximizeFloatingWindows="True" AllowMinimizeFloatingWindows="True" LayoutMode="FillContainer" Theme="Metro"> <dockManager:XamDockManager.Panes> <dockManager:SplitPane MinHeight="200" dockManager:XamDockManager.InitialLocation="DockedBottom"> <dockManager:ContentPane CloseButtonVisibility="Collapsed" Header="Output"> </dockManager:ContentPane> </dockManager:SplitPane> <dockManager:SplitPane MinHeight="200" dockManager:XamDockManager.InitialLocation="DockedTop"> <dockManager:ContentPane CloseButtonVisibility="Collapsed"> <ContentPresenter Content="{Binding ContentView}" /> </dockManager:ContentPane> </dockManager:SplitPane> </dockManager:XamDockManager.Panes> </dockManager:XamDockManager>