Close button of ToolWindow

Docking/MDI for WPF Forum

Posted 15 years ago by Simon
Version: 9.1.0505
I would like that Close button of ToolWindow would destroy it and not hide it.
I tried to destroy it in event handler:

private void dockSite_WindowClosing(object sender, DockingWindowEventArgs e)
    ToolWindow tw = e.Window as ToolWindow;

    if (tw != null)
This doesn't work.
How to solve this?

Thanks for help in advance!

Comments (1)

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

Maybe put your code in the WindowClosed event handler instead of WindowClosing. I would think that would work.

Actipro Software Support

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.