DockSite.WindowClosing on Application.Exit

Docking/MDI for WPF Forum

Posted 13 years ago by Tom P.
Version: 11.1.0544
Avatar
When my application closes, I do not get DockSite.WindowClosing events for all currently opened DocumentWindows. I obviously get them when the user manually closes a DocumentWindow via the UI. However, exiting the Application through the top level Close Button (X), or File | Exit, via the Ribbon, does not cause DockSite.WindowClosing events.

How can I get these events to fire? I have some per-DocumentWindow specific state I'd like to serialize before the Window closes.

Comments (1)

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

You would probably have to loop through the open documents (i.e. DockSite.DocumentWindows) and programmatically close them by calling DocumentWindow.Close().


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.