Programming Windows Store Apps with HTML, CSS, and JavaScript (Developer Reference)

Programming Windows Store Apps with HTML, CSS, and JavaScript (Developer Reference)

Language: English

Pages: 1311

ISBN: B00LX6D0PM

Format: PDF / Kindle (mobi) / ePub


Microsoft Press is pleased to offer the second edition of Kraig Brockschmidt's in-depth ebook on writing Windows Store apps using HTML, CSS3, and JavaScript on the Windows 8.1 platform. The ebook includes 20 chapters and 4 appendices.

Download the PDF (30.1 MB) http://aka.ms/611111pdf

Download the EPUB file (71.2 MB) http://aka.ms/611111epub

Download the Mobi for Kindle file (113 MB) http://aka.ms/611111mobi

Download Companion Files (132 MB) http://aka.ms/611111files

 

 

 

 

 

 

 

 

 

 

you’re thinking,“you’ve already written a bunch of apps, so it was easy for you!” Well, yes and no. For one thing, I also wrote this part of the chapter at the same time, and endeavored to make some reusable code, which took extra time. More importantly, the app came together quickly because I knew how to use my tools—especially Blend—and I knew where I could find code that already did most of what I wanted, namely all the Windows SDK samples on http://code.msdn.microsoft.com/windowsapps/. As

properties.insert("System.GPS.LongitudeNumerator", longNum); properties.insert("System.GPS.LatitudeDenominator", latDen); properties.insert("System.GPS.LongitudeDenominator", longDen); // Write the properties array to the file ImageProperties.savePropertiesAsync(properties).done(function () { // ... }, function (error) { // Some error handling as some properties may not be supported by all image formats. }); } A few noteworthy features of this code include the following: • It separates keywords

is, of course, a best practice with HTML/CSS in general. Here are the features that we’ll now implement: • A Bing maps control in the Location section showing the user’s current location. We’ll create and display this map automatically. • Use the WinRT APIs for camera capture to get a photograph in response to a tap on the Photo img element. • Provide the photograph and the location data to the Share charm when the user invokes it. Figure 2-15 shows what the app will look like when we’re

platform-neutral C/C++ libraries for such manipulations are readily available, which you should be able to directly incorporate into such a DLL. In this case you might as well just let the DLL open the file itself! That said, WinRT (which is written in C++!) does provide for transcoding (converting) between different media formats, and it provides an extensibility model for custom codecs, effects, and scheme handlers. In fact, we’ve already seen how to apply custom video effects through the

(js/scenario3.js) also shows an example of using ms-appdata URIs, in this case copying an in-package file to local appdata and navigating to that. Another likely scenario is that you’ll download content from an online service via an HTTP request, store that in an appdata file, and navigate to it. In such cases you’re just building the necessary file structure in a folder and navigating to the appropriate page. So, for example, you might make an HTTP request to a service to obtain multimedia

Download sample

Download