< Back
Page 10 of 10
This chapter is from the book
Workshop
Quiz
- The PageControlNavigation is part of Windows Library for JavaScript (WinJS). True or false?
- When making a game using a canvas, the best app project template to start with is the Fixed Layout App project template. True or false?
- When page controls are loaded, the WinJS library is duplicated if it is referenced in the main default.html and the page control .html pages. True or false?
- Which is the preferred navigation model, multipage navigation or single-page navigation?
Answers
- False. PageControlNavigation is generated from boilerplate code when the applications are generated. In code, we access it just as if it were a WinJS control, but it isn’t part of the base.js or ui.js files that make up WinJS.
- True. The primary purpose of the Fixed Layout App project template is to give game developers an easy way to use code that depends on a certain resolution.
- False. The WinJS script files are not loaded multiple times when using page controls.
- Single-page navigation is the preferred navigation model for Windows Store apps written with JavaScript.
Activities
- Create a new Navigation App and create three page controls. Allow the user to switch among all three page controls in the single-page app.
- Create a new Blank App and add multiple iframe elements. Create two page controls, and load those page controls into two iframe elements. The third iframe should reference content on the web. As you navigate in the web content iframe, notice the JavaScript console window in Visual Studio. Most likely, exceptions are logged where certain content can’t be loaded, such as with ActiveX controls or Flash plug-ins.
< Back
Page 10 of 10