WPF Application initialization and finalization
-
22-10-2019 - |
سؤال
I am preparing to write a WPF client application that uses ICE (Internet Communication Engine) middleware. ICE requires proper initialization and finalization. All the examples show how to accomplish this in a usual console application - which is easy because you only need try-finally block and do some stuff in it.
What about WPF? How can I be sure that some code will be called no-matter-what happens to finalize the app?
المحلول
Have a look at the Application.Exit event
لا تنتمي إلى StackOverflow