Search found 5 matches

by skyflashde
20 May 2019, 10:50
Forum: General Discussion
Replies: 2
Views: 834

Re: NoesisApp.Application never calls Window Unloaded event on app.Shutdown();

Some more stuff I found while testing ways to terminate the application: - Closing the Window calls Window.Shutdown() but not Window.Close(). - Closing the App calls Window.Close() but not Window.Shutdown() - Terminating a console app via STRG+C calls Window.Close(), then Window.Shutdown() This conf...
by skyflashde
20 May 2019, 09:43
Forum: General Discussion
Replies: 2
Views: 834

NoesisApp.Application never calls Window Unloaded event on app.Shutdown();

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...
by skyflashde
20 May 2019, 08:52
Forum: General Discussion
Replies: 6
Views: 2779

Re: MainWindow.xaml not loading using Application Framework on .NET Core

Ok, I found the problem. It is the namespace name. If I take the sample application and change the namespace from ConsoleApp1 to ConsoleApp2 it stops working. Anyone have a clue why that could be happening? :) This is my problem, just that its not the solution, its the .csproj filename: https://gith...
by skyflashde
20 May 2019, 08:38
Forum: General Discussion
Replies: 6
Views: 2779

Re: MainWindow.xaml not loading using Application Framework on .NET Core

Good morning.... I have implemented all of your suggestions and it is still not working. The sample project is working, however. I have tried to modify my project according to the sample, but so far that doesn't work. The only difference between my code (that isnt working) and the sample (which is w...
by skyflashde
17 May 2019, 16:47
Forum: General Discussion
Replies: 6
Views: 2779

MainWindow.xaml not loading using Application Framework on .NET Core

Hi, I am trying to get a console .NET Core app working that starts up Noesis. I followed your samples and this post: https://www.noesisengine.com/forums/viewtopic.php?f=3&t=1668 I got the following files now: Program.cs: namespace Dashboard { class Program { static App app; public static void Ma...