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.
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.
In the project joined, i have a content pane with buttons which header text is "buttons". I want the user only to drag and drop it for it to be docked top/bottom (what i did), left and right docking is not allowed. I want the height of this content pane not to be greater than 50. So i tried to set MaxHeightProperty of the content pane, but the user can move splitter more than 50 and it is not the wanted behaviour. Then i set the maxheight of the slipper and it worked until i dock it to top where the maxHeight property do not keep that value.
I can understand that allowing user to dock left/right or in a tabgroup would not be a good idea and i have made it not to be possible in the project.
Now i hope to be more precise.
sofianea said: I want the user only to drag and drop it for it to be docked top/bottom (what i did),
no answer. ok.Thanks