wpf - How to close a window in c# -
i've got following code in window b started in own thread window a.
view.closing += (sender, e) => { view.visibility = visibility.collapsed; e.cancel = true; };
when close window window b remains in memory , application doesn't dispose. how should go forward make sure application shut down when closing window a.
edit: window b takes while load , build that's why code there.
use application.exit();
for wpf: application.current.shutdown();
Comments
Post a Comment