We've encountered a problem when someone is dragging an object over an inactive document tab. The inactive tab is automatically activated, but this doesn't seem to fire the LastActiveDocumentChanged as we expected. The result is rather catastrophic for us since this means the datacontext of the main document window is out of sync with the datacontexts of our tool windows, and the object being dragged.
Truth be told the switching of tabs is an unwanted behavior for us, so the best solution would be for us to deactivate this autoswitch when someone is dragging the mouse over an unfocused tab. Is there any way to do this easily ?
The second option would be for us to at least notice that the tabs have been switched, for that we need an event to fire. Is there any such event we can hook onto?