Cancel window activation

Docking/MDI for WPF Forum

Posted 8 years ago by duyhai707
Avatar
I have an application where I want to show message box the user if he attempts to switch the active docking window if he has changes from the previous window that haven't been saved. => the system will switch to previous windows when user press no on "message box"
For the version 2011.1 build 0544, do we have a function for cancel activation?
And do we have another solution for this point?

Comments (1)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hello,

Sorry, but we don't have a event that can be canceled for that. You would probably have to handle the WindowDeactivated event to prompt the user, then reactivate the window as needed. You may need to call the Activate method in a Dispatcher.BeginInvoke call to ensure that it is executed at the proper time.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.