Question

Does anyone know the correct method for writing a destructor for an XBAP application?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top