![Avatar](https://secure.gravatar.com/avatar/9d6052dae2bd7ada8fdc9f6c8831191b.jpg?s=64&d=identicon&r=g)
I would like that Close button of ToolWindow would destroy it and not hide it.
I tried to destroy it in event handler:This doesn't work.
How to solve this?
Thanks for help in advance!
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();
}
How to solve this?
Thanks for help in advance!