Hi,
I'm adding content panes to my docking manager programmatically, and when I do so I explicitely set all allowDocking properties to false, except for AllowDockRight. Newly added panes are, by default, added to the document content, and can be docked on the right side only.
When I add 2 documents and set them both to be docked right, they are placed next to each other horizontally. And that's great, that's exactly how I want it. But now I can dock the first pane on any side of the other pane. So if I wanted to I could now place them vertically, and I don't want that.
Also, I get the same kind of problem when I start saving and loading layouts.
So, basically what I'm trying to do is set these docking properties for ANY parent pane, not just the current one. How can I achieve this effect?
Thanks
Hello SADR,
I am just checking have you been able to resolve your issue? If you still need any assistance on the matter do not hesitate to ask.
The AllowDock(Right|Left|Top|Bottom) refer to the edge of the xamDockManager to which they may be docked - not a relative position. If you want control beyond what the existing Allow properties offer then you must handle the PaneDragOver event. In that event you can evaluate the pane(s) being dragged and the DragAction (i.e. the object that provides information about the drag operation to be performed). You would need to upcast this as needed to the various derived PaneDragAction classes to determine more about the operation to be performed. If you do not want to allow that operation you would set the IsValidDragAction to false.