Does anyone know the correct method for writing a destructor for an XBAP application?
Does anyone know the correct method for writing a destructor for an XBAP application?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
XBAP applications are managed WPF applications that run in a browser and hence shouldn’t support deterministic cleanup.. aka destruction. The Dispose pattern is the answer for any cleanup that needs to be explicitly performed.
Or if just wanted to run some code just before shutdown… look at the Application class, which exposes life-time methods/events like OnExit/Exit.