Hi!
Now, I use WindowsDragged event and reflection to get old and new indexes.
Hi!
Hi Albert,
DockSite doesn't expose its own similar event for a drag/reorder scenario. Instead, a drag/reorder will raise the DockSite.WindowsDragging and WindowsDragged events in immediate sequence, specifying the docking window being dragged in the event args. Any time these events occur, the docking windows in the event args should be moving to other locations than where they were originally, regardless of if it's in the same or a different container. Therefore those events are good to handle logic that should execute on any drag and move.
While we don't have a specific flag in the event args to indicate a drag/reorder in the same container, you could watch for that scenario. If you see a single docking window in the WindowsDragging event args, you could persist a reference to the docking window, its current container (via DockingWindow.ParentContainer), and index. Then in a WindowsDragged event handler, if you see the same docking window and ParentContainer, you then know it was for a drag/reorder.
I hope that helps!
Thank you very much.
Please log in to a validated account to post comments.