摘要: (function () { "use strict"; WinJS.Binding.optimizeBindingReferences = true; var app = WinJS.Application; var activation = Windows.ApplicationModel.Activation; var storage = Windows.Storage; var imageFileNames = ["logo.png", "smalllogo.png"]; app.onactivated = function 阅读全文
posted @ 2013-07-17 18:24 高捍得 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 代码如下:html: App1 搜索js 代码:(function () { "use strict"; WinJS.Binding.optimizeBindingReferences = true; var app = WinJS.Application; var activation = Windows.ApplicationModel.Activation; var s = Windows.App... 阅读全文
posted @ 2013-07-17 17:39 高捍得 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 1.在首页 加入 一个元素(加下滑线的)。此元素绑定了两个属性 App1 2.定义viewmodel, 并监听 viewmodel的属性变化。这样就可以在属性变化的时候,在更新UI的同时,去做想做的事。比如:更改本地存储。首页js 如下:(function () { "use strict"; WinJS.Binding.optimizeBindingReferences = true; var app = WinJS.Application; var activation = Wind... 阅读全文
posted @ 2013-07-17 15:28 高捍得 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 1.Activated2.Suspended3.Resumed4.Terminated对应的 js代码:(function () { "use strict"; WinJS.Binding.optimizeBindingReferences = true; var app = WinJS.Application; var activation = Windows.ApplicationModel.Activation; // 一下 1,2,3 是app 的事件触发顺序 //1 app.onloaded = function (args) { ... 阅读全文
posted @ 2013-07-17 11:20 高捍得 阅读(219) 评论(0) 推荐(0) 编辑