Windows 10 Development Recipes: A Problem-Solution Approach in HTML and JavaScript

THE EXPERT S VOICE IN WINDOWS 10

Senthil Kumar, Lohith Goudagere Nagaraj, Pathik Rawal, Pryank Rohilla

Contents at a Glance


Getting Started with Windows 10 Applications
WinJS Fundamentals
Basic WinJS Controls
List Controls, AppBar, and ToolBar
Data Binding and Navigation
Adapting the UI for Different Screens
Application Lifecycle and Navigation
Globalization and Localization
Data Storage and App Data
Sharing Data
Background Tasks
Location and Maps in Windows Apps
Building Apps That Connect to the Cloud
Tiles and Notifications
Device Capabilities
Additional Tools
Sideloading and Windows App Certification Kit
Store and Monetization 

e-books shop
e-books shop
Purchase Now !
Just with Paypal



Book Details
 Price
 3.00
 Pages
 395 p
 File Size 
 12,008 KB
 File Type
 PDF format
 ISBN-13 (pbk)
 ISBN-13 (electronic) 
 978-1-4842-0720-8
 978-1-4842-0719-2
 Copyright©   
 2016 by Senthil Kumar,
 Lohith Goudagere Nagaraj,
 Pathik Rawal, and Pryank Rohilla 

About the Author
Senthil Kumar leads the Windows app development team at Cleartrip
Pvt. Ltd. He previously worked for Trivium eSolutions in Bangalore. His
experience spans across various technologies within the Microsoft stack,
including Windows Phone, WinForms, ASP.NET, SQL Server, C#, and Entity
Framework. He is a Microsoft MVP (Most Valuable Professional) in Windows
Platform Development and a Microsoft Certified Technology Specialist
(ASP.NET). He is a technical presenter, blogger, mentor, and a Geek. Senthil
is actively involved in the local developer communities and is an active
member and UG lead for the Bangalore .NET User Group (BDotnet). He is
a regular speaker in local user groups and conferences. He has presented
in conferences like the Great Indian Developer Summit and Microsoft
DevCamps and WebCamps. He blogs at DeveloperPublish.com. You can
reach out to Senthil via the Twitter handle @isenthil.
Lohith Goudagere Najaraj is a production engineer by education and a
software engineer by profession. He has 15 years of industry experience
in Microsoft .NET technology. He specializes in building web applications
using .NET as a platform. He is well versed in the WebForms and MVC
ways of building a web application. He has been awarded the prestigious
Microsoft Most Valuable Professional (MVP) award five years in a row. In
his day job, Lohith works as a Technical Evangelist in India. He is a regular
speaker in local user groups and conferences. He has presented in uber
conferences such as Microsoft TechEd India, the Great Indian Developer
Summit, and the Mobile Developer Summit, to name a few. He can also be
seen presenting in Microsoft DevCamps across India. He is a lead for the
Bangalore Dotnet User Group and helps run the group.
He lives in Bangalore with his lovely wife, Rashmi, and son Adithya.
He likes to listen to Bryan Adams, Raghu Dixit, and Sonu Nigam. He also
likes to watch the Ocean’s Trilogy, Italian Job, and National Treasure all the time.
Pryank Rohilla works as a collaboration solutions architect for a
Microsoft Gold partner in London. Pryank has 15 years of software
development experience in Microsoft technologies. He is Microsoft
certified and has worked as developer, consultant, architect, tech lead, and
delivery lead in various engagements. He lives in Reading, UK. His Twitter
handle is @Pryankrohilla. In his free time, Pryank enjoy watching sports
and spending time with family and friends.
Pathik Rawal is a successful technical architect and working as a Microsoft
technology architect. He has 15 years of software development experience
and he has worked on many consulting and technical assignments. Pathik is
Microsoft Certified and enthusiastic about cloud and mobile platforms. He
lives in London. He can be reached on Twitter at @Pathikrawal. Pathik enjoys
socializing with friends and family in his free time.

About the Technical Reviewer
Fabio Claudio Ferracchiati is a senior consultant and a senior analyst/developer using Microsoft
technologies. He works at BluArancio SpA (www.bluarancio.com) as Senior Analyst/Developer and
Microsoft Dynamics CRM Specialist. He is a Microsoft Certified Solution Developer for .NET, a Microsoft Certified Application Developer for .NET, a Microsoft Certified Professional, and a prolific author and technical reviewer. Over the past ten years, he’s written articles for Italian and international magazines and coauthored more than ten books on a variety of computer topics.

Introduction
With Window 10, Microsoft has brought in the concept of a "universal" application architecture to Windows, where the apps designed using UWP can run across different Windows-powered devices like PCs, tablets, smartphones, Xbox One, iOT, Surface Hub, and HoloLens.

You could develop Universal Windows Platform (UWP) apps using various technologies, like C# and
XAML, web technologies (HTML, CSS, JavaScript, and WinJS), C++, and so forth.
Examples in the book cover the development of a Universal Windows Platform (UWP) app using web
development technologies (HTML, JavaScript, and CSS). Once you have knowledge of web development technologies and you have mastered the UWP app development examples in this book, you will have a head start in building some great Windows apps that can run on almost all the devices powered by Windows.


Table of Contents
About the Authors .....................xxiii
About the Technical Reviewer ..................xxv
Acknowledgments .........xxvii
Introduction .............xxix
■■Chapter 1: Getting Started with Windows 10 Applications 1
1.1 Examining the Universal Windows Platform
1.2 Development Tools for Universal Windows Platform 
1.3 Creating Universal Windows Platform Application
1.4 Running Universal Windows Platform Apps 
■■Chapter 2: WinJS Fundamentals 15
2.1 Namespaces in JavaScript 
2.2 Add a Namespace to an Existing Namespace 
2.3 Creating a Class in WinJS 
2.4 Deriving a Class in WinJS 
2.5 Create Mixins in WinJS 
2.6 Encapsulation in WinJS 
2.7 Using Promise in WinJS 
■■Chapter 3: Basic WinJS Controls 31
3.1 Declaring a WinJS Control on a Page 
3.2 Setting Options for WinJS Controls 
3.3 Adding WinJS Controls from Your JavaScript Code 
3.4 Getting the WinJS Controls from an HTML Document 
3.5 The ToggleSwitch Control 
3.6 The DatePicker Control 
3.7 The TimePicker Control 
3.8 The Tooltip Control 
3.9 Displaying Text 
3.10 Editing Text in an App 
■■Chapter 4: List Controls, AppBar, and ToolBar 55
4.1 Using the Repeater Control
4.2 Using the FlipView Control 
4.3 Using the ListView 
4.4 Filtering Items in the ListView Control 
4.5 Grouping Items in the ListView Control 
4.6 Semantic Zoom in ListView 
4.7 Using the AppBar Control 
4.8 Using the ToolBar Control 
■■Chapter 5: Data Binding and Navigation  83
5.1 Data Bind to Simple Objects 
5.2 Data Bind Style Attributes of DOM Elements 
5.3 Use Templates for Data Binding 
5.4 Data Bind WinJS Controls 
5.5 Navigational Structures in UWP Apps 
5.6 Navigational Elements in UWP Apps 
5.7 Pivot Navigation in UWP Apps 
5.8 SplitView Navigation in UWP Apps 
5.9 Hub Navigation in UWP Apps 
5.10 Master/Detail Navigation Using ListView in UWP Apps 
■■Chapter 6: Adapting the UI for Different Screens  115
6.1 Design Breakpoints for Different Screens 
6.2 Adaptive UI Technique: Reposition 
6.3 Adaptive UI Technique: Fluid Layouts 
■■Chapter 7: Application Lifecycle and Navigation  127
7.1 Application States and Events 
7.2 Handling the Unhandled Exception in Your App 
7.3 Handling the Termination and Resuming of the App 
7.4 Using SessionState to Store the State 
7.5 Navigate Between Pages Using Hyperlinks 
7.6 Navigate Between Pages Using Single-Page Navigation
■■Chapter 8: Globalization and Localization  145
8.1 Using Resource Strings 
8.2 Formatting Date, Time, Number, and Currency 
8.3 Localizing WinJS Controls 
■■Chapter 9: Data Storage and App Data  159
9.1 How to Create and Delete a Local App Data Settings Container 
9.2 How to Create and Read Local App Data Settings 
9.3 How to Create and Retrieve Local Composite Settings 
9.4 How to Create a Roaming App Data Store Container 
9.5 How to Create and Read Roaming App Data Settings 
9.6 How to Register the Data Change Event 
9.7 How to Create, Write, and Read a Local File 
■■Chapter 10: Sharing Data 181
10.2 Share Plain Text Data to Other Apps
10.3 Share Web Links to Other Apps 
10.4 Share an Image to Other Apps 
10.5 Declare App As a Share Target 
10.6 Handle Share Activation and Receive Plain Text
10.7 Receive Images Shared by Other Apps 
10.8 Share Custom Data Type 
■■Chapter 11: Background Tasks   213
11.1 System Event Triggers for Background Tasks 
11.2 Create and Register a Background Task 
11.3 Setting Conditions for Running a Background Task 
11.4 Monitor Background Task Progress and Completion 
■■Chapter 12: Location and Maps in Windows Apps  221
12.1 Get the Current Location 
12.2 Respond to Geolocator Location Updates 
12.3 Detect the User’s Location with HTML5 
12.4 Detect Location Updates with HTML5 
12.5 Display Maps in the Built-in Maps App 
12.6 Display Directions in the Built-in Maps App 
12.7 Bing Maps Control in the Windows Store App 
■■Chapter 13: Building Apps That Connect to the Cloud 251
13.1 Creating a New Mobile Service in Microsoft Azure 
13.2 Creating a Database Table in Mobile Services 
13.3 Installing Mobile Services for the WinJS Client Library 
13.4 Performing the CRUD Operation 
13.5 Data Retrieval with Paging 
13.6 Sorting Returned Data from the Mobile Service
13.7 Performing Validation in a Server Script 
■■Chapter 14: Tiles and Notifications 275
14.1 Create a Default Tile 
14.2 Create Adaptive Tiles 
14.3 Create a Toast Notification with Visual Content 
14.4 Create a Toast Notification with Actions 
14.5 Create a Scheduled Tile and Toast Notification 
14.6 Create or Update a Badge on a Tile 
■■Chapter 15: Device Capabilities  287
15.1 How to Specify Device Capabilities in an App Package Manifest 
15.2 How to Specify Device Capabilities for Bluetooth for Windows Apps 
15.3 How to Find Devices Available for a UWP App 
15.4 How to Create an Audio Stream and Output Speech Based on Plain Text 
15.5 How to Specify Recognition Constraints for Speech Recognition 
15.6 How to Launch Your App with Cortana Voice Command in Foreground 
■■Chapter 16: Additional Tools  307
16.1 JavaScript Console Window 
16.2 DOM Explorer 
16.3 Diagnostic Tools 
16.4 Windows 10 Mobile Emulator: Additional Tools 
■■Chapter 17: Sideloading and Windows App Certification Kit  327
17.1 Sideload Your App 
17.2 Install Certificate and Package Separately 
17.3 Validate Your Windows App Using the Windows App Certification Kit 
17.4 Validate an App Package on a Remote Windows 10 Device 
■■Chapter 18: Store and Monetization  347
18.1 Create a Windows App Developer Account 
18.2 Package a Universal Windows Platform Application for Windows 10 
18.3 Submit an App to the Windows Store 
18.4 Use Windows Ad Mediation in Your UWP Apps 
18.5 Show Ads in Your Application 
Index ............... 365


Bookscreen
e-books shop

Who This Book Is For
This book is targeted at developers with some basic knowledge in web development technologies like
HTML, CSS, and JavaScript and who are interested in developing Windows apps. 
The step-by-step approach taken in the book will help developers understand the concepts much easier.
Previous Post Next Post