NoesisApp.Application never calls Window Unloaded event on app.Shutdown();
Posted: 20 May 2019, 09:43
My next problem is that I need to unload stuff when the app shut down. There are many ways to close the application, and I need to catch them all.
They all go to an app.Shutdown(); call, but this doesn't seem to trigger the Unloaded event in the Window.
Now I could call the code in the Window myself, but how do I get the Window from the Application object?
I can't find this property:
https://docs.microsoft.com/de-de/dotnet ... mework-4.8
It should be in Noesis:
https://www.noesisengine.com/docs/2.2/A ... ation.html
So how do I access it? Or is there another way?
How do I trigger the MainWindow.Unloaded event?
Thank you!
They all go to an app.Shutdown(); call, but this doesn't seem to trigger the Unloaded event in the Window.
Now I could call the code in the Window myself, but how do I get the Window from the Application object?
I can't find this property:
https://docs.microsoft.com/de-de/dotnet ... mework-4.8
It should be in Noesis:
https://www.noesisengine.com/docs/2.2/A ... ation.html
So how do I access it? Or is there another way?
How do I trigger the MainWindow.Unloaded event?
Thank you!