Close button of ToolWindow

Docking/MDI for WPF Forum

Posted 16 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 16 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 (v25.1.0) was released 30 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.