
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!