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
105
MaxHeight is lost for splitpane when changing dock
posted

Hello,

I am using xamDockManager, and i want to set the MaxHeight property to 50 for example, When i change dock property by drag and drop the content pane, this property is lost, that is to say, i the splitpane can have a height bigger than the max height property. Is it a wanted behaviour or i did anything that makes it not to work or should i do anything else to make it work?

I join you the reproduction of that issue.

King regards.

IssueReproduction.zip
Parents
No Data
Reply
  • 54937
    Offline posted

    When you drag a ContentPane, you are dragging the ContentPane and not the SplitPane. The SplitPane is just a container for other panes will remain where it was and if needed for the drop destination a new one will be created. If you need to manipulate the SplitPanes that are created then you would probably have to handle the PaneDragEnded and depending upon the e.DragAction you could change the constraints on the parent but it could be complicated. I mean what will you do if the user drags the pane into an existing tabgroup/splitpane, if they dock it on the left/right edge or even to the left/right of a pane docked on top (assuming you allow these)? Maybe if you can provide some information on what you are trying to do and I might be able to offer some alternatives.

Children