I have a WPF window which I am creating from another window by calling Show()
, then letting it Close()
itself. When the window closes, I expect it to die, call its destructor, and delete all its child elements (such as timers..).
What is the correct way of invoking such an action?