Programmatic vs user closing dock window

Docking/MDI for WPF Forum

Posted 13 years ago by PhilipK - Developer, QuIC Financial Technologies Inc
Version: 11.1.0542
Avatar
Is there a way to tell the different between programmatic vs user closing dock window? Thanks.

Comments (2)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Philip,

Unfortunately, no. That is something you would have to track internally in your application. Most likely using a flag that you set before calling the Close method.

There are some edge cases were we cannot really determine if it was a user-initiated action. For example, if a tool window is in a floating window and the floating window is closed (via Alt+F4, system menu, or programmatically), then we are only notified that the window is closing (and thus the tool window must be closed as well).


Actipro Software Support

Posted 13 years ago by PhilipK - Developer, QuIC Financial Technologies Inc
Avatar
Is it the same approach as in this thread?
http://www.actiprosoftware.com/support/forums/viewforumtopic.aspx?ForumTopicID=5675

Edit: Got it. Thanks.

[Modified at 05/18/2011 03:21 PM]
The latest build of this product (v24.1.1) 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.