Saturday, 17 August 2013

ViewState handler updateLayout method never get hit

ViewState handler updateLayout method never get hit

I am starting with a blank template where I get a default.htm and
default.js. I want to handle the event when app goes from full to snap or
filled mode etc. I have added updateLayout method but when I add a
breakpoint here, its never get hit. The break point on ready method is
getting hit. What am I doing wrong here?
// For an introduction to the Page Control template, see the following
documentation:
// http://go.microsoft.com/fwlink/?LinkId=232511
(function () {
"use strict";
WinJS.UI.Pages.define("default.html", {
// This function is called whenever a user navigates to this page. It
// populates the page elements with the app's data.
ready: function (element, options) {
},
unload: function () {
// TODO: Respond to navigations away from this page.
},
updateLayout: function (element, viewState, lastViewState) {
}
});
})();

No comments:

Post a Comment