I want to run a method in the MainWindowViewModel (I want to make sure some Com Ports are closed before the app closes). In the App.XAML I added Exit = "ExitEventHandler." I want the MainWindowViewModel to watch for this event and run the method to close the ports. I am not getting the setup...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.