HTML and CSS Reference
In-Depth Information
Chapter 7
Navigating through
multimedia content
The greatest challenge to any thinker is stating the problem in a way that will allow
a solution.
—Bertrand Russell
In this chapter, you'll explore the capabilities of the Windows 9 JavaScript (WinJS) library—as far as
the display of multimedia content is concerned. You'll see how to build a gallery of images, how to
zoom them in and out, and investigate ways to watch YouTube videos from within a Windows Store
application.
Foundation of page navigation
So far in this topic, all the applications you have created have used the Blank App template. That
template is fine for applications that consist of a single page. But what if you want to build an
application that displays multiple pages and requires users to navigate between them? Before you
start with the nitty-gritty details of getting pictures and video clips into your apps, a brief exploration
of the framework that provides navigation is in order. Next, armed with this knowledge, you can start
planning a gallery where users can scroll images and click them to perform additional tasks.
The navigation model of Windows Store applications
To jump from one page to another is no big deal; you just invoke a specific piece of code that links to
another page. Or, easier still, you just use an HTML hyperlink element.
While both of these approaches work well, you should note that WinJS has a richer set of
functionalities available. These functionalities not only let you display a different page, but also track
Search WWH ::




Custom Search