Close button of ToolWindow

Docking/MDI for WPF Forum

Posted 15 years ago by Simon
Version: 9.1.0505
Avatar
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)
        tw.Destroy();            
}
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
Avatar
Simon,

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.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.