locked
purpose of window.closed event

    Question

  • I was going through this tutorial:

    http://msdn.microsoft.com/en-us/library/windows/apps/hh465084.aspx

    and they attached a OnWindowClosed function to the window->closed event. I was wondering if this event is ever actually called. From what I understand, the apps suspension event is the only one you can rely on. Am I right in thinking this?

    Also, I was wondering what happens to the run function when the app is suspended. Is it just frozen, or does it get restarted?

    Sunday, November 25, 2012 12:33 AM

Answers

  • Through experimentation, I've come to several conclusions that I believe are right.

    1. The window->closed event isn't really ever called in an app.

    2. The run function is frozen when the app is suspended.

    If these conclusions are wrong, please tell me. Otherwise, I believe my questions are answered.

    • Marked as answer by tekaleke Sunday, November 25, 2012 3:04 AM
    Sunday, November 25, 2012 3:03 AM