WinJS.UI.SettingsFlyout - unload event firing RRS feed

  • Question

  • I'm trying to build a settings page for my Win8 JS application.  The settings page has numerous textboxes and I don't want to save settings until the settings flyout loses focus so I can update the settings when all the items are done being changed.    I was going to use the unload event/method but it doesn't appear to be fired when a flyout collapses.

    The MSDN code sample for ApplicationSettings has a file 5-SettingsFlyout-Settings.js which uses/provides the unload function but it never gets called.  (Or atleast Visual Studio doesn't capture the breakpoint on the first line in the funtion().

    What event can I capture to tell me the page is unloading so I can save the settings?

    Robert Bogue

    Wednesday, October 3, 2012 1:47 AM