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