Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1735
How to set MinWidth, MinHeight, Width, Heigh, and ResizeMode of ToolWindowHostWindow
posted

We have several Floating SplitaPanes, some of which need to have a MinHeight, and MinWidth, while others need to have a set Height and Width and set the ResizeMode so the users can not resize them.

How can we achieve this? Setting properties on the SplitPanes doesn't seem to affect the floating windows as expected. Looking at the Visual Tree we noticed that the actual "floating window" is the ToolWindowHostWindow, which contains our SplitPane. Therefore, we need to apply the properties to that control.

How can we set the MinWidth, MinHeight, Width, Heigh, and ResizeMode of the ToolWindowHostWindow?

  • 17475
    Offline posted

    Hello Dzyann, 

    There is an attached property for the XamDockManager which can be used to set the size of the floating window – FloatingSize.

    Another approach is to get the ToolWindow – ToolWindow.GetToolWindow(pane) and change min width, height and resize mode.

    Please have a look at the following forum thread and let me know if you have any other questions on this matter:

    http://ko.infragistics.com/community/forums/t/90035.aspx