I notice that when someone unpins a pane, it does not fly back in until the mouse leaves the pane. This is somewhat unintuitive compared to other applications. I therefore would like to work around this and force the pane to fly in when it is unpinned, however I can't seem to find an appropriate event to catch. I can't see a PinEvent anywhere, or maybe a pinstatechanged or something. Or maybe I'm missing a property that would perform this behavior? Any recommendations?
You may want to use the AfterPaneButtonClick event. In there you can call the dockmanager.FlyIn() method. You can add some if checks to see which button was clicked but it should not be necessary as the method will fly in panes which are unpinned.
Perfect, that did the trick.