Document Reordered Event Handler #36

Open
louwill opened this Issue Jul 27, 2012 · 3 comments

Comments

Projects
None yet
2 participants

louwill commented Jul 27, 2012

Is there a public event handler that I can subscribe to that will tell me when a document has been reordered in a dockpanel? I have a dockpanel set to DocumentStyle.DockingWindow that can contain two or more separate document tabs, and I would like to know when and if the user manually reorders these.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Owner

roken commented Jul 29, 2012

I don't believe such an event exists currently but this can be looked into as a future enhancement.

louwill commented Jul 29, 2012

Thanks, the best I could find was when DockState changes. This works in situations when the user drags a document out of the dockpanel, but in the case where the user reorders nothing is fired as far as I can tell.

louwill commented Jul 30, 2012

A temporary solution may be for me to programmatically reorder the documents in the pane. Is there a preferred way to do this once the documents are already added during runtime? I'd like to be able to remove a document from the collection and reinsert at an index, but I noticed the insert and remove functions are internal within the DockContentCollection class.

Thanks in advance for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment