Developing Windows 8 Style Application With HTML and JavaScript

Slides:



Advertisements
Similar presentations
Building RADNUG8 – the windows 8 app Part 1 Matt
Advertisements

Introduction to the Windows Runtime (WinRT) Ben Dewey Tallan, Inc.
WinJS Priorities max: 15 high: 13 aboveNormal: 9 normal: 0 belowNormal: -9 idle: -13 min: -15.
Windows 8 Metro / HTML5 JS “First Blood” Peter Kellner Microsoft MVP, ASP.NET ASPInsider Primary Organizer Silicon Valley Code.
 User Interface - Raeha Sandalwala.  Introduction to UI  Layouts  UI Controls  Menus and ‘Toasts’  Notifications  Other interesting UIs ◦ ListView.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Tutorial 16 Working with Dynamic Content and Styles.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Aptech Borivali(West) Hefin Dsouza. Agenda  What is.NET and What is Visual Studio? .NET Framework 3.5 Overview.  Visual Studio 2008 Enhancements. 
 jQuery Mobile An Introduction. What is jQuery Mobile  A framework built on top of jQuery, used for creating mobile web applications  Designed to make.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Win8 on Intel Programming Course Modern UI : Features Cédric Andreolli Intel Software.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
Building Windows 8 Apps with HTML & JavaScript Jaime Rodriguez Principal
Building Metro style apps with HTML and JavaScript Paul Gusmorino Lead Program Manager Microsoft Corporation.
Windows Store apps with HTML + Facebook integration
Angelo Chan Kamran Bilgrami. Agenda ● WinJS - What and Why ● Modern Apps ● WinRT Architecture ● Demos o Controls o Data Bindings o Program LifeCycle Management.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
WinRT and Windows 8 Sergey Barskiy Principal Consultant, Magenic.
Introduction to ArcGIS API for JavaScript
Introduction to Mobile Programming. Slide 2 Overview Fundamentally, it all works the same way You get the SDK for the device (Droid, Windows, Apple) You.
Designing metro style apps for Windows 8 A walkthrough some UI / UX best practices Lanny Geffen, Creative Director, Digiflare.
Building Metro style apps with HTML and JavaScript Paul Gusmorino Lead Program Manager Microsoft Corporation.
Silverlight Technology. Table of Contents 1.What is Silverlight Technology? 2.Silverlight Overview. 2.1 How it works 2.2 Silverlight development tools.
Web hosting in app Creating a Windows Store app with web assets.
Developer Day Welcome to TechDays Lausanne, Ronnie Saurenmann Technology Evangelist, Microsoft Switzerland.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2 Revised by Dr. T. Tran for CSI3140.
Esri UC 2014 | Technical Workshop | Operations Dashboard for ArcGIS: Extending the Functionality Jay Chen Kylie Donia Tif Pun.
Trunica Inc. 500 East Kennedy Blvd #300 Tampa, FL Cross Platform Mobile Apps With Cordova and Visual Studio 2015 © Copyright 2015.
Internet Explorer 10 IE9 hardware-accelerated platform CSS 2D Transforms CSS Backgrounds & Borders CSS Color CSS Fonts CSS Media Queries CSS Namespaces.
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
web Metadata Properties Thumbnails Properties by Kind MRU Change Notifications Bulk Access File broker functions Search Deep/Shallow Enumeration.
Windows 8: XAML or HTML? Karl Davies-Barrett CEE DPE Tech Lead, Microsoft 
Developing Windows 8 Style Application With HTML and JavaScript Lino Tadros | Falafel Software.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
C# Programming: From Problem Analysis to Program Design1 Visual Studio Configuration C# Programming: From Problem Analysis to Program Design 4th Edition.
Windows 8 App Development with XAML
Office 365 Development July 2014.
1/10/2018 9:33 PM Cloud Roadshow © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO.
Building Windows 8 App.
DotNetSpider Editor Hefin Dsouza
Chapter 2: The Visual Studio .NET Development Environment
What's new in the world of SharePoint development and deployment
Office 365 Development July 2014.
JavaScript Functions.
Manual testing of Windows Metro style apps built using HTML
What web developers need to know when building Metro style apps
Top Reasons to Choose Angular. Angular is well known for developing robust and adaptable Single Page Applications (SPA). The Application structure is.
Reaching more customers with accessible Metro style apps using HTML5
Create Metro style apps quickly with built-in controls
Silverlight Technology
Understanding the Visual IDE
CIS16 Application Development Programming with Visual Basic
Tooling and Diagnostics
Tutorial 6 Creating Dynamic Pages
Build /2/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Search: integrating into the Windows 8 search experience
Building Windows 8 and Windows Azure apps
Build polished collection and list apps in HTML5
Bring apps to life with Metro style animations in HTML5
Build data-driven collection and list apps using ListView in HTML5
Integrating with Windows 8 Experiences
Using tiles and notifications
Web AppBuilder for ArcGIS
Enterprise Developer Camp Jumpstart
User Interface Design In Windows using Blend.
Windows Forms in Visual Studio 2005: An in-depth look at key features
Presentation transcript:

Developing Windows 8 Style Application With HTML and JavaScript WWW.KAASHIVINFOTECH.COM

The big picture WWW.KAASHIVINFOTECH.COM

The tools are there! Visual Studio Expression Blend Code editor w/ Intellisense UI Designer Debuggers DOM Explorer Javascript Console Simulator Platform window Visual Studio Code Editor WYSIGYG designer Interactive mode Animation Smarter Properties Window Simulator Platform window Expression Blend WWW.KAASHIVINFOTECH.COM

Windows Library for JavaScript Matches the Windows 8 design style Controls for common user experiences Designed for touch as well as traditional input Scales across form factors Make your apps look and feel great Web technologies you’re already familiar with Modern patterns for responsive, reliable apps Use interactive design tools Build your apps fast and with high quality WWW.KAASHIVINFOTECH.COM

WinJS Helpers for Namespaces, Constructor Definition Data binding Controls Promises Animations App Model Templates Navigation Utilities Page & User controls Default CSS Styles WWW.KAASHIVINFOTECH.COM

Promises handle Async WWW.KAASHIVINFOTECH.COM

Promise Code // Object that is a promise for a later value WinJS.xhr({ url:"http://www.example.org/somedata.json" }).then(function (response) { updateDisplay( JSON.parse(response.responseText)); }, function (ex) { reportXhrError(ex); }); WWW.KAASHIVINFOTECH.COM

Host Enforcement Prevents potentially “bad” HTML from getting inserted Script blocks, iframes, event handlers, etc. Kicks in when setting strings innerHTML outerHTML setAdjacentHTML “data-” attributes in general not on the allowed list WinJS specific ones are ok WWW.KAASHIVINFOTECH.COM

Host Enforcement Escape Hatches Can work around when needed: toStaticHTML method Use DOM creation APIs Use WinJS.Utilities.setInnerHTMLUnsafe Use msWWA.execUnsafeLocalFunction WWW.KAASHIVINFOTECH.COM

Everyday Widgets WWW.KAASHIVINFOTECH.COM

Presenting Data List View (ListLayout) ListView (with GridLayout) Flip View WWW.KAASHIVINFOTECH.COM

Controls <!– Step1: declare control --> <div id=“list” data-win-control="WinJS.UI.ListView" data-win-options="{ selectionMode: 'none' }"></div> /* Step 2: Call WinJS.UI.processAll() */ WinJS.UI.processAll(); /* Step 3: Use the control */ document.getElementById(‘list’).winControl.addEventListener (‘selectionchanged’, onSelChanged ); WWW.KAASHIVINFOTECH.COM

DataBinding <!– Step1: declare template --> <div class="itemtemplate" data-win-control="WinJS.Binding.Template"> <div class="item"> <img class="item-image" src="#" data-win-bind="src: backgroundImage; alt: title"/> <div class="item-overlay"> <h4 class="item-title" data-win-bind="textContent: shortTitle"></h4> <div class="item-subtitle" data-win-control="WinJS.UI.Rating" data-win-options="{disabled: true}" data-win-bind="winControl.userRating: rating"></div> </div> /* step2: use the Data Template */ ui.setOptions(listView, { itemTemplate: element.querySelector(".itemtemplate"), oniteminvoked: this.itemInvoked }); WWW.KAASHIVINFOTECH.COM

Commanding Surfaces WWW.KAASHIVINFOTECH.COM

Windows 8 Animation Library Contains key Metro style app animations Has the same storyboard values, curves, and even the same API that Windows uses Aligns your app to the Windows 8 personality WWW.KAASHIVINFOTECH.COM

Animation Library Scenarios Navigation Content Reveal/Hide UI enterPage/exitPage enterContent/exitContent Expand/collapse Peek showEdgeUI/hideEdgeUI showPanel/hidePanel showPopup/hidePopup Collections Selection AddItemToList Delete item from list Pointer animations Swipe select/swipe deselect Swipe reveal WWW.KAASHIVINFOTECH.COM

Basic Tiles Overlays status on top of tile Supports square and wide tiles Number up to 99 or pre-defined glyph: Always legible on top of images Badge Badge WWW.KAASHIVINFOTECH.COM

WWW.KAASHIVINFOTECH.COM

Toast Notifications Toast notifications deliver transient messages outside the context of the app Use toast notifications to get user’s attention immediately User is in control and can permanently turn off toast notifications from your app Allows quick navigation to a contextually relevant location in your app Toast notifications are easy to invoke from your app or from the cloud WWW.KAASHIVINFOTECH.COM

Toast Templates Toast notifications use the same template architecture as Live Tiles Rich set of rendering options available WWW.KAASHIVINFOTECH.COM

Search Share Settings Play To App to App Picking Contracts WWW.KAASHIVINFOTECH.COM

Search Anatomy Search box is scoped to the main app on screen 1 Search box is scoped to the main app on screen Query suggestions provided by the main app on screen Autocompletes to terms for which the app has search results List of installed Metro style apps that have implemented the search contract 2 3 WWW.KAASHIVINFOTECH.COM

Search Anatomy 4 Result suggestions provided by the main app on screen Must include a thumbnail and title Indicates a strong or exact match result Takes users directly to the details of the result WWW.KAASHIVINFOTECH.COM

Implementing Search //Easiest is to Add -> New Item -> Search Contract in visual Studio // Step 1: Declare the capability in the manifest <Extensions> <Extension Category="windows.search" /> </Extensions> //Step 2 : Handle the events appModel.Search.SearchPane.getForCurrentView().onquerysubmitted = function (eventObject) { /*do work here*/ }; appModel.Search.SearchPane.getForCurrentView().onsuggestionsrequested = function (eventObject) { /* do work here */ }; WWW.KAASHIVINFOTECH.COM

Thank you! WWW.KAASHIVINFOTECH.COM