LastActiveDocumentChanged is not triggered as expected

Docking/MDI for WPF Forum

Posted 12 years ago by Berge Aadland
Version: 11.2.0552
Platform: .NET 4.0
Environment: Windows 7 (64-bit)

Dear Actipro

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?

Sincerely yours

-Berge Aadland

Comments (2)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Berge,

You may be able to explicity set DockingWindow.AllowDrop = false but you'd have to do it after each docking window was created.

Other than that, if you'd like us to look into it, please make a new simple sample project that shows the issue and e-mail it to our support address.  Rename the .zip file extension so it doesn't get spam blocked and reference this post.  Thanks!

Actipro Software Support

Posted 12 years ago by Berge Aadland

Your solution with AllowDrop = false; worked wonderfully =)  Thank you for the quick response.

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.