SlideShare a Scribd company logo
Creating your Windows 8.1
App with HTML/JS
Alexandre Marreiros
About
What i do:
CTO @ Innovagency
Technical Trainer, Speaker & Consultant as Self Employee
Teacher @ EDIT
Software Developer & Architect as Consultant
Tech Writer and Revier as Self Employee
Digital business & UX Consultant
Contacts:
amarreiros@innovagency.com / amarreiros@gmail.com
@alexmarreiros
http://www.linkedin.com/pub/alexandre-marreiros/8/4b8/a21
www.digitalmindignition.com
Alexandre Marreiros
Agenda
• Windows Store APPS that use HTMLShowCase
• Basic Principles
• Development tools
• Development Model
• WinJS
• WinJS 2.0
Putting the hands on demos
Microsoft PT TechRefresh html win8.1
• Calendar
• People
• Store
• Reaing List
• Mail
• Finance
• Sports
• Weather
• News
• Travel
• Skype
• And More
Native Microsoft APPS
• Caixa Directa
• A Bola
• ANA aeorportos
• Eat o
• Vodafone Quiosque
• MyAuto
• And More
Local Portuguese Store APPS
Microsoft PT TechRefresh html win8.1
Runtime Recap
Some Popular CSS 3 Features
Some Popular HTML 5
Features
Web vs APP development
Feature Local context Web context
Windows Run-time Yes No
Windows Library for Javascript Yes No
External script references No Yes
Cross-domain XHR requests Yes No
Automatic filtering for script
injection on DOM
Yes No
• Styling changes
• Windows Runtime access
• Single page model
• App sizes and orientations
Web vs APP development
• Security context and innerHTML
• Local and web context
• IE11 DOCMODE
• Network connectivity and offline
experience
HTML development Review
WinJS HTML5
Windows app
WinRT
HTML development Review
Windows
The new WINJS
WinJS 1.0
Windows 8 app
WinJS 2.0
Windows 8.1 app
Microsoft PT TechRefresh html win8.1
Tools
Visual Studio Templates
Visual Studio Templates
A single Page APP with the struture of a Windows Store APP, no Controls or
Layout predefined
Visual Studio Templates
A project with items grouped in a grid and the details of each item.
Visual Studio Templates
A project to navigate between Grouped Items and get the detail from each
item in a group
Visual Studio Templates
A project for a Windows Store APP that implements the HUB navigation
Pattern
Visual Studio Templates
A project for a Windows Store APP that have a predefined Navigation
controls
Windows Store
HTML project Structure
Explained
WINRT library instaciated directly by
the app
Windows Store
HTML project Structure
Explained
CSS Libraries for the Windows store
app
Windows Store App Images
JavaScript
Windows Store
HTML project Structure
Explained
App certify
App Manifest
Microsoft PT TechRefresh html win8.1
• Style sheets
• Core (promises, class, namespace,
etc.)
• App model
• Data binding
WIN JS
• Controls
• Animations
• Utilities
A collection of toolkits to make building Windows Store apps fast
and easy
WIN JS
Microsoft PT TechRefresh html win8.1
• Show how to use WinJS Controls in a declarative manner and a
imperative manner
Review Demo
<div id="calendar" data-win-control="WinJS.UI.DatePicker"></div>  Declarative Way
WinJS controls are divs with
atributtes that are processed
when the processall method
runs.
• Show how to use WinJS Controls in a declarative manner and a
imperative manner
Review Demo
 Imperative Way
In the HTML File
<div id="calendarDiv" ></div>
In th JS file
var calendarDiv = document.getElementById("calendar");
var calendarctrl = new WinJS.UI.DatePicker(calendarDiv);
Microsoft PT TechRefresh html win8.1
What’s new on WinJS 2.0
Improved Controls
• List view
• App bar
New Controls
• Hub
• Navigation bar
• Search box
• Back button
Infrastructure
• Scheduler
• Dispose model
• Async debugging
Building Blocks
• Binding template
• Repeater
• Item Container
• Native layout performance
• Highly flexible presentation
• Improved keyboarding
• Drag-n-drop
List View
• New Buil-in Layouts
List View Highly flexible
presentation
<div id=“myListView“
data-win-control="WinJS.UI.ListView"
data-win-options="{ itemDataSource: myData.dataSource ,
itemTemplate: myTemplate ,
layout: { type: WinJS.UI.GridLayout ,
orientation:
WinJS.UI.Orientation.horizontal } }”
itemsDraggable: true } “
</div>
List View
• Scaling to Window Size
• Keyboarding
• Custom Content
APP Bar
<div data-win-control="WinJS.UI.AppBar">
<button data-win-control="WinJS.UI.AppBarCommand" data-win-
options="{…}"></button>
<button data-win-control="WinJS.UI.AppBarCommand" data-win-
options="{…}"></button>
<div data-win-control="WinJS.UI.AppBarCommand“
data-win-options="{type: 'content'}">
<!– YOUR CONTENT HERE -->
</div>
</div>
APP Bar
HUB
Header Header Header Header
HUB
<div data-win-control="WinJS.UI.Hub">
<div data-win-control="WinJS.UI.HubSection" data-win-options="{header: „Foo'}">
<!-- YOUR CONTENT HERE -->
</div>
<div data-win-control="WinJS.UI.HubSection" data-win-options="{header: „Bar'}">
<!-- YOUR CONTENT HERE -->
</div>
</div>
Navigation Bar
<div data-win-control="WinJS.UI.NavBar">
<div data-win-control="WinJS.UI.NavBarContainer">
<div data-win-control="WinJS.UI.NavBarCommand"
data-win-options="{ label: „Foo', icon: 'url(foo.png)' }"></div>
<div data-win-control="WinJS.UI.NavBarCommand"
data-win-options="{ label: 'Bar', icon: 'url(bar.png)„ }"></div>
</div>
</div>
Navigation Bar
SearchBox
<div id=“mySearchBox" data-win-control="WinJS.UI.SearchBox“></div>
mySearchBox.addEventListener("suggestionsrequested",
suggestionsRequestedHandler);
mySearchBox.addEventListener("querysubmitted",
querySubmittedHandler);
SearchBar
Scheduler
Task
Task
Task
Task
Task
Task
Task
Scheduler
Task
Task
Task
Task
Task
Task
Task
Task
schedule(func, pri);
schedule(func, pri);
schedule(func, pri);
Scheduler
setImmediate(foo);
var S = WinJS.Utilities.Scheduler;
S.schedule(foo, S.Priority.normal);
or
S.schedule(foo, S.Priority.high);
or
S.schedule(foo, S.Priority.idle);
<div data-win-control="WinJS.Binding.Template">
<img src="#" data-win-bind="src: imageUrl; alt: tile" />
<div data-win-bind="innerText: tile"></div>
<div data-win-bind="innerText: text"></div>
</div>
Binding Template
Repeater
HTML UI
var myBindingList = new WinJS.Binding.List(…);
<div data-win-control="WinJS.UI.Repeater" data-win-options="{data:
myBindingList}">
<label data-win-bind="textContent: description"></label>
<progress data-win-bind="value: value" max="100"></progress>
</div>
Repeater
Microsoft PT TechRefresh html win8.1
• Create a HUB based application that use Bind to get the rss feed values,
show the network client, the DataBinding Power and the interaction with
the APP Bar
http://code.msdn.microsoft.com/windowsapps/Hub-template-sample-with-
4b70002d
The base sample for the demo is
• Show Blend being used to costumize HTML Windows Store APPS, another
interesting sample would be
http://www.codeproject.com/Articles/615819/Hub-Control-in-Blend
Code for the demo in http://digitalmindignition/source/hubExample
Review Demo
Microsoft PT TechRefresh html win8.1
• Styling changes
• Windows Runtime access
• Single page model
• App sizes and orientations
Web vs APP development
• Security context and innerHTML
• Local and web context
• IE11 DOCMODE
• Network connectivity and offline
experience
HTML development Review
WinJS HTML5
Windows app
WinRT
• Style sheets
• Core (promises, class, namespace,
etc.)
• App model
• Data binding
WIN JS
• Controls
• Animations
• Utilities
A collection of toolkits to make building Windows Store apps fast
and easy
Time to build your Windows
apps
• Windows 8.1
• http://windows.microsoft.com/en-us/windows-8/preview
• http://msdn.microsoft.com/en-us/windows/apps/bg182409
• http://channel9.msdn.com/Events/Build/2013/2-165
• http://channel9.msdn.com/Events/Build/2013/2-081
• http://channel9.msdn.com/Events/Build/2013/2-311
• http://channel9.msdn.com/Events/Build/2013/3-156
• http://msdn.microsoft.com/library/windows/apps/bg182410
• http://code.msdn.microsoft.com/windowsapps/Windows-8-Modern-Style-App-Samples
• http://www.app-me-up.com/
• Windows 8 & HTML
• Programming Windows 8 Apps with HTML, CSS, and JavaScript
(http://go.microsoft.com/FWLink/?Linkid=254738)
• Desenvolvimento em Windows 8, Luís Abreu, FCA
• http://channel9.msdn.com/Series/HTML5-CSS3-Fundamentals-Development-for-Absolute-
Beginners
References
Questions
Contacts:
amarreiros@innovagency.com / amarreiros@gmail.com; @alexmarreiros; http://www.linkedin.com/pub/alexandre-
marreiros/8/4b8/a21; www.digitalmindignition.com
Thanks

More Related Content

PPTX
Boot strapandresponsiveintro
PPTX
A Smooth Transition to HTML5
PDF
Dictionary by phoneGap
PPTX
Can WordPress help make the web more accessible - eaccess15 - Feb 2015
PPTX
Capture the Cloud with Azure
ODP
An Intro: WordPress with CiviCRM at Civicon 2014
PPTX
Reusable Whiteboard Wicket Component for Apache Openmeetings
PPTX
Boot strapandresponsiveintro
A Smooth Transition to HTML5
Dictionary by phoneGap
Can WordPress help make the web more accessible - eaccess15 - Feb 2015
Capture the Cloud with Azure
An Intro: WordPress with CiviCRM at Civicon 2014
Reusable Whiteboard Wicket Component for Apache Openmeetings

What's hot (20)

PPTX
Psd to foundation
PDF
Platforms based on WordPress
PPTX
Computing
PPTX
Intro to Xamarin: Cross-Platform Mobile Application Development
PPT
wordpress training | wordpress certification | wordpress training course | wo...
PPTX
Azure for Hackathons
PPTX
Intro to Bot Framework
PDF
Bandwidth optimisation in Responsive Webdesign - J&Beyond, june 1st 2013
PDF
Managing Multiple WordPress Websites in 2017
PPT
Computing
PPTX
Xbox One Dev Mode
PPTX
A word press site even your mother can use
PDF
Building Large Mobile Apps
PPTX
CC 2015 Single Page Applications for the ASPNET Developer
PDF
Mobile web or native app
PPTX
Building SPA with Kendo UI
PPTX
Themes Plugins and Accessibility - WordCamp London March 2015
PPTX
Ecomm 101
DOCX
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
Psd to foundation
Platforms based on WordPress
Computing
Intro to Xamarin: Cross-Platform Mobile Application Development
wordpress training | wordpress certification | wordpress training course | wo...
Azure for Hackathons
Intro to Bot Framework
Bandwidth optimisation in Responsive Webdesign - J&Beyond, june 1st 2013
Managing Multiple WordPress Websites in 2017
Computing
Xbox One Dev Mode
A word press site even your mother can use
Building Large Mobile Apps
CC 2015 Single Page Applications for the ASPNET Developer
Mobile web or native app
Building SPA with Kendo UI
Themes Plugins and Accessibility - WordCamp London March 2015
Ecomm 101
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
Ad

Similar to Microsoft PT TechRefresh html win8.1 (20)

PDF
Use html5 to build what you want, where you want it
PDF
Win j svsphonegap-damyan-petev-mihail-mateev
PPTX
Windows 8 for Web Developers
PPTX
Windows Store Apps using HTML and JavaScript: Become a Windows App Store deve...
PPTX
Universal Apps Development using HTML 5 and WINJS
PPTX
WinJS at NYC Code Camp 2012
PDF
Building native Win8 apps with YUI
PDF
Windows 8 app template feedback
PPTX
WebSite development using WinJS
PPTX
Windows8.1 html5 dev paradigm discussion netponto
PDF
Develop High Performance Windows 8 Application with HTML5 and JavaScriptHigh ...
PPTX
Windows8 metro presentationupdated
PDF
Building Beautiful and Interactive Windows 8 apps with JavaScript, HTML5 & CSS3
PDF
What Web Developers Need to Know to Develop Windows 8 Apps
PPTX
Windows 8.1 term paper
PPTX
Sde2012 top ten ux tips win8
PPTX
What’s new in WinJS? Windows Phone 8.1 and the road ahead
PPTX
Windows 8 & JavaScript
PPT
Busy Developer's Guide to Windows 8 HTML/JavaScript Apps
PDF
Develop an app for Windows 8 using HTML5
Use html5 to build what you want, where you want it
Win j svsphonegap-damyan-petev-mihail-mateev
Windows 8 for Web Developers
Windows Store Apps using HTML and JavaScript: Become a Windows App Store deve...
Universal Apps Development using HTML 5 and WINJS
WinJS at NYC Code Camp 2012
Building native Win8 apps with YUI
Windows 8 app template feedback
WebSite development using WinJS
Windows8.1 html5 dev paradigm discussion netponto
Develop High Performance Windows 8 Application with HTML5 and JavaScriptHigh ...
Windows8 metro presentationupdated
Building Beautiful and Interactive Windows 8 apps with JavaScript, HTML5 & CSS3
What Web Developers Need to Know to Develop Windows 8 Apps
Windows 8.1 term paper
Sde2012 top ten ux tips win8
What’s new in WinJS? Windows Phone 8.1 and the road ahead
Windows 8 & JavaScript
Busy Developer's Guide to Windows 8 HTML/JavaScript Apps
Develop an app for Windows 8 using HTML5
Ad

More from Alexandre Marreiros (20)

PPTX
Agular fromthetrenches2netponto
PPTX
Whats a Chat bot
PPTX
Type of angular 2
PPTX
Xamarin devdays 2017 - PT - connected apps
PPTX
ASP.NEt MVC and Angular What a couple
PPTX
PPTX
Jws masterclass progressive web apps
PPTX
Xamarin.forms
PPTX
Quick View of Angular JS for High School
PPTX
Pt xug xamarin pratices on big ui consumer apps
PPTX
Get satrted angular js day 2
PPTX
Get satrted angular js
PPTX
Gab2015 azure search as a service
PPTX
Pragmatic responsive web design industry session 7
PPTX
GWAB Mobile Services
PPTX
Html5ignition newweborder
PPTX
Mobile first responsive industry sessions
PPTX
pragmatic Mobile apps choices frameworks and dev
PPTX
Windows8.1overviewnetponto
PPTX
Sharepoint dev preview
Agular fromthetrenches2netponto
Whats a Chat bot
Type of angular 2
Xamarin devdays 2017 - PT - connected apps
ASP.NEt MVC and Angular What a couple
Jws masterclass progressive web apps
Xamarin.forms
Quick View of Angular JS for High School
Pt xug xamarin pratices on big ui consumer apps
Get satrted angular js day 2
Get satrted angular js
Gab2015 azure search as a service
Pragmatic responsive web design industry session 7
GWAB Mobile Services
Html5ignition newweborder
Mobile first responsive industry sessions
pragmatic Mobile apps choices frameworks and dev
Windows8.1overviewnetponto
Sharepoint dev preview

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Empathic Computing: Creating Shared Understanding
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Getting Started with Data Integration: FME Form 101
PPTX
Spectroscopy.pptx food analysis technology
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Encapsulation theory and applications.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation_ Review paper, used for researhc scholars
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
TLE Review Electricity (Electricity).pptx
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Empathic Computing: Creating Shared Understanding
Assigned Numbers - 2025 - Bluetooth® Document
Getting Started with Data Integration: FME Form 101
Spectroscopy.pptx food analysis technology
A comparative study of natural language inference in Swahili using monolingua...
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Univ-Connecticut-ChatGPT-Presentaion.pdf
Encapsulation theory and applications.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25-Week II
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Microsoft PT TechRefresh html win8.1

Editor's Notes

  • #3: About me and feel free to contact if you have some questions, explain that this session is for the ones who never develop Windows store apps based on HTML and for the ones who had developed apps but want to see whats next on windows 8.1 HTML windows store apps development
  • #4: For our goal we have create the following agendaAgendaBasic Princeples: showing the basics about Windows 8 model programming an development with HTML
  • #5: Per Windows marketing: This statement was made by Antoine Leblond.. At the 12/6 store disclosure event. If you can work that into your closing please share it.
  • #6: Give the example of some Windows 8.1 Windows Store APPS based on HTML / CSS development and show how this apps that came with the OS represent a clear investement off Microsoft in HTML.Show Store/ Finance / weather / Travel
  • #7: Show that we are also doing something in Portugal using HTML and WhyShow CaixaDirecta, Ana aeroportos, ABola
  • #9: Recap the Runtime engine of Windows 8
  • #10: Windows 8 app model gives support for some of the most popular and used CSS 3 Features and make that fluid and beauthifull
  • #14: Explain the WINJS development Model
  • #16: Explain the difference between libraries and that WIN JS 2.0 is full compatible with WINJS 1.0
  • #18: Talk about the tools, explain how they can be used together and the place of each one of them
  • #28: Litle Demo of a Windows Store APP using just HTML and CSS3, Show lso the manifest
  • #29: Explain what WIN JS give us
  • #30: Some of the WinJS controls
  • #31: Show the way we convert a Div in to a WINJS control, Make th edemo two ways using code behind and using HTML atributes
  • #34: Show the way we convert a Div in to a WINJS control, Make th edemo two ways using code behind and using HTML atributes
  • #35: What had change in Winjs 2.0
  • #57: Explain the WINJS development Model
  • #58: Explain what WIN JS give us
  • #59: Now it’s your turn to star using all this Knowldge to build your apps, for the new OS, and to help you i will give you some study and hands on references...
  • #60: Here you have some references, since as we had seen what has valid for WINJS stills valid for WINJS 2.0 i will give you also some references for Windows 8
  • #61: Feel free to ask your questions if you don’t do it now you can always use my contacts, feel free to ask.
  • #62: Thank you all for your time was a pleasure to spend this hour with you diging on Windows 8.1 HTML develop, still tuned with the rest of the session more nice things to see next