Mspress Books Developer

Total Page:16

File Type:pdf, Size:1020Kb

Mspress Books Developer Programming Windows® 8 Apps with HTML, CSS, and JavaScript FIRST PREVIEW Kraig Brockschmidt PUBLISHED BY Microsoft Press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright © 2012 Microsoft Corporation All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. ISBN: 978-0-7356-7261-1 This document supports a preliminary release of a software product that may be changed substantially prior to final commercial release. This document is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information in this document, including URL and other Internet website references, is subject to change without notice. The entire risk of the use or the results from the use of this document remains with the user. Unless otherwise noted, the companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted in examples herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft and the trademarks listed at http://www.microsoft.com/about/legal/en/us /IntellectualProperty/Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies. All other marks are property of their respective owners. This book expresses the author’s views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book. Acquisitions, Developmental, and Project Editor: Devon Musgrave Cover: Twist Creative • Seattle Introduction ....................................................................................................... 6 Who This Book Is For .......................................................................................................................................................................... 7 What You'll Need ................................................................................................................................................................................. 8 Acknowledgements ............................................................................................................................................................................. 8 Errata & Book Support ....................................................................................................................................................................... 9 We Want to Hear from You ............................................................................................................................................................. 9 Stay in Touch.......................................................................................................................................................................................... 9 Chapter 1: The Life Story of a Metro Style App: Platform Characteristics of Windows 8 ......................................................... 10 Leaving Home: Onboarding to the Store ................................................................................................................................. 11 Discovery, Acquisition, and Installation ..................................................................................................................................... 14 Playing in the Sandbox: The App Container ........................................................................................................................... 17 Different Views of Life: View States and Resolution Scaling ............................................................................................. 21 Those Capabilities Again: Getting to Data and Devices ..................................................................................................... 24 Taking a Break, Getting Some Rest: Process Lifecycle Management ............................................................................ 26 Remembering Yourself: App State and Roaming ................................................................................................................. 28 Coming Back Home: Updates and New Opportunities ...................................................................................................... 32 And, Oh Yes, Then There’s Design .............................................................................................................................................. 34 Chapter 2: Quickstart ...................................................................................... 35 A Really Quick Quickstart: The Blank App Template ........................................................................................................... 35 Blank App Project Structure ...................................................................................................................................................... 38 QuickStart #1: Here My Am! and an Introduction to Blend for Visual Studio .......................................................... 42 Design Wireframes ........................................................................................................................................................................ 43 Create the Markup ........................................................................................................................................................................ 45 Styling in Blend............................................................................................................................................................................... 47 Adding the Code ........................................................................................................................................................................... 53 Extra Credit: Receiving Messages from the iframe .......................................................................................................... 65 The Other Templates ........................................................................................................................................................................ 66 Fixed Layout Template ................................................................................................................................................................ 67 Navigation Template ................................................................................................................................................................... 67 Grid Template ................................................................................................................................................................................. 68 3 Split Template .................................................................................................................................................................................68 What We’ve Just Learned ................................................................................................................................................................69 Chapter 3: App Anatomy and Page Navigation ........................................... 70 Local and Web Contexts within the App Host ........................................................................................................................71 Referencing Content from App Data: ms-appdata ..........................................................................................................75 Sequential Async Operations: Chaining Promises .................................................................................................................78 Debug Output, Error Reports, and the Event Viewer ......................................................................................................81 App Activation .....................................................................................................................................................................................83 Branding Your App 101: The Splash Screen and Other Visuals ..................................................................................83 Activation Event Sequence.........................................................................................................................................................86 Activation Code Paths ..................................................................................................................................................................87 WinJS.Application Events ............................................................................................................................................................90 Extended Splash Screens .............................................................................................................................................................91
Recommended publications
  • An Independent Look at the Arc of .NET
    Past, present and future of C# and .NET Kathleen Dollard Director of Engineering, ROICode [email protected] Coding: 2 Advanced: 2 “In the beginning there was…” Take a look back at over 15 years of .NET and C# evolution and look into the future driven by enormous underlying changes. Those changes are driven by a shift in perception of how .NET fits into the Microsoft ecosystem. You’ll leave understanding how to leverage the .NET Full Framework, .NET Core 1.0, .NET Standard at the right time. Changes in .NET paralleled changes in the languages we’ll reflect on how far C# and Visual Basic have come and how they’ve weathered major changes in how we think about code. Looking to the future, you’ll see both the impact of functional approaches and areas where C# probably won’t go. The story would not be complete without cruising through adjacent libraries – the venerable ASP.NET and rock-star Entity Framework that’s recovered so well from its troubled childhood. You’ll leave this talk with a better understanding of the tool you’re using today, and how it’s changing to keep you relevant in a constantly morphing world. Coding: 2 Advanced: 2 “In the beginning there was…” Take a look back at over 15 years of .NET and C# evolution and look into the future driven by enormous underlying changes. Those changes are driven by a shift in perception of how .NET fits into the Microsoft ecosystem. You’ll leave understanding how to leverage the .NET Full Framework, .NET Core 1.0, .NET Standard at the right time.
    [Show full text]
  • Microsoft Software License Terms for a Virtual Hard Disk Image of Evaluation Copies of the Microsoft Products Identified in Exhibit A
    MICROSOFT SOFTWARE LICENSE TERMS FOR A VIRTUAL HARD DISK IMAGE OF EVALUATION COPIES OF THE MICROSOFT PRODUCTS IDENTIFIED IN EXHIBIT A These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the evaluation software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft Internet-based services for this software. BY ACCESSING OR USING THE SOFTWARE, YOU ACCEPT THIS AGREEMENT. IF YOU DO NOT ACCEPT THIS AGREEMENT, YOU MAY NOT ACCESS OR USE THE SOFTWARE. AS DESCRIBED BELOW, USING SOME FEATURES ALSO OPERATES AS YOUR CONSENT TO THE TRANSMISSION OF CERTAIN STANDARD COMPUTER INFORMATION FOR INTERNET-BASED SERVICES. If you comply with this agreement, you have the rights below. 1. ACCESS AND USE RIGHTS. The terms of this agreement supersede the terms of any Microsoft software license term agreement that you may encounter in this software. You may use the Virtual Hard Disk (VHD) formats, including Microsoft Virtual PC or Microsoft Virtual Server. You may use the software only to demonstrate and internally evaluate it. You may not use the software in a live operating environment. The software is licensed as a single piece of software. You may not separate its component parts. You may access or use on more than one device. The Exceptions and Additional Terms for Particular Products as included in Exhibit A. 2. INTERNET-BASED SERVICES. Microsoft may provide Internet-based services with the software. It may change or cancel them at any time.
    [Show full text]
  • DELL EMC VMAX ALL FLASH STORAGE for MICROSOFT HYPER-V DEPLOYMENT July 2017
    DELL EMC VMAX ALL FLASH STORAGE FOR MICROSOFT HYPER-V DEPLOYMENT July 2017 Abstract This white paper examines deployment of the Microsoft Windows Server Hyper-V virtualization solution on Dell EMC VMAX All Flash arrays, with focus on storage efficiency, availability, scalability, and best practices. H16434R This document is not intended for audiences in China, Hong Kong, Taiwan, and Macao. WHITE PAPER Copyright The information in this publication is provided as is. Dell Inc. makes no representations or warranties of any kind with respect to the information in this publication, and specifically disclaims implied warranties of merchantability or fitness for a particular purpose. Use, copying, and distribution of any software described in this publication requires an applicable software license. Copyright © 2017 Dell Inc. or its subsidiaries. All Rights Reserved. Dell, EMC, Dell EMC and other trademarks are trademarks of Dell Inc. or its subsidiaries. Intel, the Intel logo, the Intel Inside logo and Xeon are trademarks of Intel Corporation in the U.S. and/or other countries. Other trademarks may be the property of their respective owners. Published in the USA 07/17 White Paper H16434R. Dell Inc. believes the information in this document is accurate as of its publication date. The information is subject to change without notice. 2 Dell EMC VMAX All Flash Storage for Microsoft Hyper-V Deployment White Paper Contents Contents Chapter 1 Executive Summary 5 Summary .............................................................................................................
    [Show full text]
  • Georgia Department of Transportation Automated Traffic Signal
    Georgia Department of Transportation Automated Traffic Signal Performance Measures Installation Manual Prepared for: Georgia Department of Transportation 600 West Peachtree Street, NW Atlanta, Georgia 30308 Prepared by: Atkins North America 1600 RiverEdge Parkway, NW Suite 600 Atlanta, GA 30328 Special Thanks to the Utah Department of Transportation: 2/23/2017 Document Control Panel File Name: ATSPM_Installation_Manual.docx Version No.: Created By: Philip Blaiklock, Atkins Date of First Submission: Updated By: Client Comments Received: Revision History Control Panel CREATED BY: Philip Blaiklock, Atkins David Bremer, Atkins Brian Ritchson, Atkins REVIEWED BY: Ron Meyer, Atkins 12/13/2016 TECHNICAL REVIEW: Mark Taylor, UDOT Jamie Mackey, UDOT Shane Johnson, UDOT Derek Lowe, UDOT MODIFIED BY: COMPLETED BY: 2 3 Table of Contents 1. Prerequisites 7 1.1. Server Requirements 7 1.2. Other Requirements 8 2. New Install Procedure 8 2.1. Create the Website using IIS 8 2.2. Launch Website and Populate Database 10 2.3. Set up Regions 11 2.4. Set up User Accounts 12 2.5. Configure Signals, Approaches, and Routes 12 2.6. Configure the “Generate Add Data Script” Component 13 2.7. Create Web Services 15 2.8. Install the “Import Controller Logs” Component(s) 16 2.8.1. Install the “FTPFromAllControllers” component 16 2.8.2. Install the “GetMaxTimeRecords” Component 17 2.9. Install the “Decode and Import” Component(s) 17 2.9.1. Install the “DecodeAndImportASC3Logs” Component 17 2.9.2. Install the “DecodePeekLogs” Component 18 2.9.3. Install the “DecodeSiemensLogs” Component 18 2.9.4. Install the “DecodeTrafficwareLogs” Component 19 2.10.
    [Show full text]
  • Top 10 Windows 7 Desktop Gadgets May 28, 2010 by Debra Littlejohn Shinder, MVP Way Back in 2008, I Wrote an Article Titled the Top 10 Vista Sidebar Gadgets
    Top 10 Windows 7 desktop gadgets May 28, 2010 By Debra Littlejohn Shinder, MVP Way back in 2008, I wrote an article titled The top 10 Vista Sidebar Gadgets. Now it's 2010 and I'm running Windows 7, and although I still use most of the gadgets I was using back then, I've also discovered a few new ones that deserve mention. Here are my favorites. 1: All CPU Meter The gadget I used to monitor my dual-core computer running Vista wasn't available in a quad-core version, so I switched to All CPU Meter (Figure A). It supports up to eight cores (so I have room to grow). All CPU Meter isn't as complex as some, but the simplicity works in its favor. It monitors your memory usage as well as CPUs, and it packs a lot of information into a small space. I also like that you can change the Figure A background color to match your preferences. 2: Windows Orb Clock During all the time I used Vista and the first year I used Windows 7, my analog clock gadget of choice was the electric blue version of the one that comes with the operating system. But now I've switched to a much cooler model: the Vista Orb Clock (Figure B). Of course, the same orb is also on the Windows 7 Start menu. I love its clean look and the nice symmetry of having it just across from my Start Menu orb (since I have my Taskbar set to the vertical position.
    [Show full text]
  • GDOT ATSPM Installation Manual
    Georgia Department of Transportation Automated Traffic Signal Performance Measures Installation Manual Prepared for: Georgia Department of Transportation 600 West Peachtree Street, NW Atlanta, Georgia 30308 Prepared by: Atkins North America 1600 RiverEdge Parkway, NW Suite 600 Atlanta, GA 30328 Special Thanks to the Utah Department of Transportation: 12/16/2016 GDOT/UDOT Automated Traffic Signal Performance Measures Installation Manual Table of Contents 1. Prerequisites ..................................................................................................................................... 1 1.1. Server Requirements ..................................................................................................................... 1 1.2. Other Requirements ...................................................................................................................... 2 2. New Install Procedure ................................................................................................................. 2 2.1. Create the Website using IIS ......................................................................................................... 2 2.2. Launch Website and Populate Database ...................................................................................... 4 2.3. Set up Regions ............................................................................................................................... 5 2.4. Set up User Accounts ...................................................................................................................
    [Show full text]
  • T-Mobile and Metropcs Continue to Expand Consumer Choice, Will Offer New Windows Phone 8.1 on Nokia’S Upcoming Lumia 635
    T-Mobile and MetroPCS Continue to Expand Consumer Choice, Will Offer New Windows Phone 8.1 on Nokia’s Upcoming Lumia 635 BELLEVUE, Wash. – April 2, 2014 – Immediately on the heels of Microsoft’s Windows Phone 8.1 unveiling today, T-Mobile US, Inc. (NYSE: TMUS) has announced the company will offer up its Redmond neighbor’s latest mobile OS as part of its ongoing commitment to deliver greater freedom and choice for American wireless consumers – starting with Nokia’s new Lumia 635 coming this summer. The Lumia 635 will be the first device sold in the United States powered out of the box by the very latest Windows Phone 8.1 operating system, introduced earlier today at Microsoft’s 2014 Build developers conference in San Francisco. T-Mobile US today also announced that, come summer, T-Mobile and MetroPCS will be the best places to get the very first smartphone with the new Windows Phone OS for a low upfront cost and with zero service contract, zero overages (while on its wicked-fast network), zero hidden device costs, and zero upgrade wait. And only T-Mobile and MetroPCS customers can experience the next-gen Lumia 635 on America’s fastest nationwide 4G LTE network. “The Un-carrier’s all about removing crazy restrictions and delivering total wireless freedom and flexibility,” said Jason Young, senior vice president of Marketing at T-Mobile. “With Windows Phone, we can offer customers another great choice in mobile platforms. And we’re excited to bring to both T- Mobile and MetroPCS customers the combination of next-gen software, great features and fresh design that Nokia’s latest Windows Phone has to offer.” The Lumia 635 will build on all the qualities and benefits that made its predecessor – the Lumia 521 – so popular among American wireless customers.
    [Show full text]
  • UI Design and Interaction Guide for Windows Phone 7
    UI Design and Interaction Guide 7 for Windows Phone 7 July 2010 Version 2.0 UI Design and Interaction Guide for Windows Phone 7 July 2010 Version 2.0 This is pre-release documentation and is subject to change in future releases. This document supports a preliminary release of a software product that may be changed substantially prior to final commercial release. This docu- ment is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information in this document, including URL and other Internet Web site references, is subject to change without notice. The entire risk of the use or the results from the use of this document remains with the user. Unless otherwise noted, the companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted in examples herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this docu- ment. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property.
    [Show full text]
  • Electronic Diagnostics
    ELECTRONIC DIAGNOSTICS otctools.com QUESTIONS? otctools.com 888 789 2602 PROTECT YOUR INVESTMENT ELECTRONIC DIAGNOSTICS PROTECT YOUR INVESTMENT REPAIR TRACK AND TOOLGUARD™ SERVICE COVERAGE PACKAGES YOU CAN COUNT ON At OTC, we recognize that your purchase of OTC tools and equipment is an important investment in your business. The service information provided below demonstrates our commitment to you with online support and extended service coverage you can count on. Warranty Registration Warranty registration is the most important step in providing exceptional customer service. Registration is available online at https://register.servicesolutionsportal.com or call us at 1-800-533-6127 and follow the prompt for OTC technical assistance. Repair TRACK RepairTrack offers you the ability to manage your repair experience with OTC products by providing you with an easy way to send your product in for repair and track it. • From the moment it leaves your facility to the moment it returns, you will have the latest information. • Generate a Repair Return Authorization by printing out a UPS tracking number directly from this site. • Review and approve Repair Estimates online. • Make Credit Card payments for your Repairs online. • Up to date warranty and service information include any special programs that exist with your product. • Find out the latest repair policies and procedures, and where to go for additional information. • Don’t miss this valuable service. For technical support or repair service on your OTC tools or equipment, log on to repairtrack.bosch-automotive.com or call us at 1-800-533-6127 and follow the prompt for OTC technical assistance.
    [Show full text]
  • Taking the Metro with Windows Phone
    1 Taking the Metro with Windows Phone WHAT ’ S IN THIS CHAPTER ➤ How Windows Phone has changed Microsoft ’ s approach to the mobile industry ➤ What the Metro Design Language is and how it came about ➤ An overview of the Start and Lock Screens and how they help users access information on the phone ➤ Why the use of Hubs creates a more connected user experience ➤ What it means to be a Windows Phone developer Microsoft has been building mobile devices for well over 10 years, starting with a variety of Windows CE- based devices, such as the Handheld PC and the Palm- size PC, fi rst released in 1996. Beginning around 2000, these disparate operating systems began converging into what became Windows Mobile, based on the principle of delivering a PC to your pocket. New features were predominately driven by enterprise needs such as device management and security. This eventuallyCOPYRIGHTED worked to the detriment ofMATERIAL the platform as it didn’ t appeal to the average consumer. Devices were more robust than sexy, and the user interface mirrored that of the desktop, even having a Start menu, rather than providing an experience. Throughout this chapter, and in other parts of this book, there will be references to both Windows Mobile and Windows Phone . This is intentional, and they are not the same thing. Windows Mobile refers to the previous mobile operating system from Microsoft that at the time of writing is Windows Mobile 6.5.3. Windows Phone refers to Microsoft ’ s latest offering in the mobile space and starts with Windows Phone 7.
    [Show full text]
  • Damian Karzon
    Damian Karzon Email: [email protected] Twitter: @dkarzon LinkedIn: https://www.linkedin.com/in/dkarzon/ Website: http://dkdevelopment.net I have a passion for building great software development teams and strive to be active and positive within the developer community. Skills Professional Communication, Leadership, Mentoring Programming C#, Javascript, Node.js, Java, Xamarin, Unity3d, Python Web ASP.NET Webforms/MVC/WCF/Core, React, HTML, CSS, Javascript, Cordova Platforms Web, Windows, Mobile, Xbox One Data Tableau, PostgreSQL, MS SQL Server, OData, GraphQL, Singer.io Process Git, Github (Actions), Teamcity, Azure, AWS, Terraform, Cypress Experience Toddle Technology Lead (March 2021 - Present) Plan and implement a data consolidation strategy and reporting capabilities. Developing and maintaining web services and applications for Toddle Platform (Python, React, Next.js, AWS). Developing and maintaining web services and applications for CareForKids Platform (ASP .NET Framework/Core, jQuery, Azure). WORK180 Technology Lead (October 2019 - March 2021) Managing a team of developers to build the company's online platforms. Developing and maintaining web services and applications (ASP .NET Core, React, Next.js, AWS). Plan and implement a data strategy and Business Intelligence tool (Tableau Server). Strategic thinking and planning for the future of the company’s online platform. Prototyping new technologies to solve business issues Proactively identify technical debt and potential problems Work with 3rd party stakeholders on integrations
    [Show full text]
  • We Are Living CRM Philosophy
    We are Living CRM Philosophy www.inskysolutions.com www.inskysolutions.com ContactInSky Instead of expensive and complicated software, central place where users can get the informa- InSky Solutions has developed a very simple tion on related activities, but also perform some but rich business solution based on trusted and of the activities required. Some of the business accepted Microsoft products: Microsoft Dynam- benefits resulting from implementation: tomers are informed of the possibility to upgrade ever, to share their bad experiences with new, immediately – it was designed holistically and potential users. Until now, an insufficient number ics 365, SkypeforBusiness, Office 365, ASP.NET, • Improving and providing consistent quality implemented in parts. of CRM providers were focused on smaller organ- HTML, Bing maps, Power BI, Team Foundation information to users Server, Exchange, Edge and SharePoint. The system offers a wide range of security isations, partially due to the complexity of the • Enabled communication with the persons implementation, which is almost equal to that of The ContactInSky solution is unique and modelling features, and it is important to choose that are best addressed in a specific area a medium-sized company, and due to the prices, innovative, and does not require separate phone the most appropriate approach to implementing • Improved productivity, better access and which were too high for smaller companies. infrastructure such as telephone switchboards a solution. Each feature offers a combination of better records Nowadays, the option of acquiring software as a or PBX infrastructure networks; Internet access characteristics that provide a balance between service, e.g. a cloud solution, led to larger price is the only requirement.
    [Show full text]