SlideShare a Scribd company logo
Getting Started Building Windows 8 HTML/JavaScript Metro Apps
Getting Started Building Windows 8 HTML/JavaScript Metro Apps





Getting Started Building Windows 8 HTML/JavaScript Metro Apps



               WinJS Files
    Styles
              Pages

    Scripts
                Config








         App Bar   Message Dialog




    Context Menu
                             Flyout

    

    

    





    

    

    



.homepage section[role=main] {
    margin-left: 120px;
}

@media screen and (-ms-view-state: snapped) {
    .homepage section[role=main] {
        margin-left: 20px;
    }
}

@media screen and (-ms-view-state: portrait) {
    .homepage section[role=main] {
        margin-left: 100px;
    }
}


    

    

    







<label for="CityLabel">Select a city:</label>

<select id="CitiesSelect">
    <option value="1">Phoenix</option>
    <option value="20">New York</option>
    <option value="35">Dallas</option>
    <option value="11">San Diego</option>
</select>

<button id="SubmitButton">Submit</button>





<div data-win-control="WinJS.UI.DatePicker">
</div>





<div data-win-control="WinJS.UI.DatePicker"
     data-win-options="{maxYear: 2015}">
</div>

    

    

    

    

    





Getting Started Building Windows 8 HTML/JavaScript Metro Apps








<div id="itemTemplate"
     data-win-control="WinJS.Binding.Template">
    <div>
          <img src="#" data-win-bind="src: image" />
    </div>
</div>



<div id="myItemTemplate"
     data-win-control="WinJS.Binding.Template">
</div>

<div id="CitiesListView"
     data-win-control="WinJS.UI.ListView"
     data-win-options="{itemTemplate:
                         select('#myItemTemplate')}">
</div>





-       -
    -       -

    -       -

            -

            -




-       -
    -           -

    -           -

    -           -

                -


function fadeIn(element) {
    WinJS.UI.Animation.fadeIn(element);
}
function pointerDown(e) {
    WinJS.UI.Animation.pointerDown(e.srcElement);
}
function pointerUp(e) {
    WinJS.UI.Animation.pointerUp(e.srcElement);
}








Getting Started Building Windows 8 HTML/JavaScript Metro Apps
Getting Started Building Windows 8 HTML/JavaScript Metro Apps

More Related Content

What's hot (15)

PPTX
Big Data for each one of us
OSCON Byrum
 
PPTX
JQuery Overview
Mahmoud Tolba
 
PDF
Master AngularJS
Fabien Vauchelles
 
PDF
J queryui
Inbal Geffen
 
PDF
Steps to create image carousel by using angularjs
Manikandan Keerthivasan
 
PPTX
Jquery
Elite outreach co
 
PDF
[2019] 벅스 5.0 (feat. Kotlin, Jetpack)
NHN FORWARD
 
PDF
JQuery UI
Gary Yeh
 
PDF
[2019] 스몰 스텝: Android 렛츠기릿!
NHN FORWARD
 
PDF
AngularJS in 60ish Minutes - Dan Wahlin | FalafelCON 2014
FalafelSoftware
 
PDF
Jquery In Rails
shen liu
 
KEY
You Can Kick-Ass Too, AtlasCamp US 2012
Atlassian
 
PPTX
Jquery web dev workshop technocracy
Amit Gupta
 
PDF
Game jump: frontend introduction #1
Sebastian Pożoga
 
PDF
Javascript session june 2013 (iii) jquery json
abksharma
 
Big Data for each one of us
OSCON Byrum
 
JQuery Overview
Mahmoud Tolba
 
Master AngularJS
Fabien Vauchelles
 
J queryui
Inbal Geffen
 
Steps to create image carousel by using angularjs
Manikandan Keerthivasan
 
[2019] 벅스 5.0 (feat. Kotlin, Jetpack)
NHN FORWARD
 
JQuery UI
Gary Yeh
 
[2019] 스몰 스텝: Android 렛츠기릿!
NHN FORWARD
 
AngularJS in 60ish Minutes - Dan Wahlin | FalafelCON 2014
FalafelSoftware
 
Jquery In Rails
shen liu
 
You Can Kick-Ass Too, AtlasCamp US 2012
Atlassian
 
Jquery web dev workshop technocracy
Amit Gupta
 
Game jump: frontend introduction #1
Sebastian Pożoga
 
Javascript session june 2013 (iii) jquery json
abksharma
 

Viewers also liked (20)

PPTX
Basics of angular directive (Part - 1)
Vijay Kani
 
PDF
AngularJS Custom Directives
yprodev
 
PDF
Custom AngularJS Directives
yprodev
 
PPTX
AngularJS custom directive
Nascenia IT
 
PDF
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
FalafelSoftware
 
PPTX
Building AngularJS Custom Directives
Dan Wahlin
 
PPTX
JavaScript Patterns to Cleanup your Code
Dan Wahlin
 
PPTX
AngularJS in 60ish Minutes
Dan Wahlin
 
PPT
Using jQuery Templates
Dan Wahlin
 
PPTX
Building the an End-to-End ASP.NET MVC 4, Entity Framework, HTML5, jQuery app...
Dan Wahlin
 
PPTX
Integrating Security Roles into Microsoft Silverlight Applications
Dan Wahlin
 
PPTX
Development Trends - What's New in the World of Web Development
Dan Wahlin
 
PPTX
Spa Architecture with Durandal and Friends
Johnny Tordgeman
 
PPTX
Planificación y organización de dominio
lilidani103
 
PPTX
Building an End-to-End AngularJS Application
Dan Wahlin
 
PPTX
AngularJS Testing
Eyal Vardi
 
PDF
Nodejs
Eyal Vardi
 
PPTX
Getting Started with ASP.NET MVC 3 and Razor
Dan Wahlin
 
PPTX
AngularJS Compile Process
Eyal Vardi
 
PPTX
Node.js Spplication Scaling
Eyal Vardi
 
Basics of angular directive (Part - 1)
Vijay Kani
 
AngularJS Custom Directives
yprodev
 
Custom AngularJS Directives
yprodev
 
AngularJS custom directive
Nascenia IT
 
Building Custom AngularJS Directives - A Step-by-Step Guide - Dan Wahlin | Fa...
FalafelSoftware
 
Building AngularJS Custom Directives
Dan Wahlin
 
JavaScript Patterns to Cleanup your Code
Dan Wahlin
 
AngularJS in 60ish Minutes
Dan Wahlin
 
Using jQuery Templates
Dan Wahlin
 
Building the an End-to-End ASP.NET MVC 4, Entity Framework, HTML5, jQuery app...
Dan Wahlin
 
Integrating Security Roles into Microsoft Silverlight Applications
Dan Wahlin
 
Development Trends - What's New in the World of Web Development
Dan Wahlin
 
Spa Architecture with Durandal and Friends
Johnny Tordgeman
 
Planificación y organización de dominio
lilidani103
 
Building an End-to-End AngularJS Application
Dan Wahlin
 
AngularJS Testing
Eyal Vardi
 
Nodejs
Eyal Vardi
 
Getting Started with ASP.NET MVC 3 and Razor
Dan Wahlin
 
AngularJS Compile Process
Eyal Vardi
 
Node.js Spplication Scaling
Eyal Vardi
 
Ad

Similar to Getting Started Building Windows 8 HTML/JavaScript Metro Apps (17)

PPTX
Microsoft PT TechRefresh html win8.1
Alexandre Marreiros
 
PPTX
What’s new in WinJS? Windows Phone 8.1 and the road ahead
Nguyên Phạm
 
PDF
Building native Win8 apps with YUI
Tilo Mitra
 
PPTX
Windows 8 for Web Developers
Gustaf Nilsson Kotte
 
PDF
Building Beautiful and Interactive Windows 8 apps with JavaScript, HTML5 & CSS3
Doris Chen
 
PDF
Win j svsphonegap-damyan-petev-mihail-mateev
Mihail Mateev
 
PDF
Use html5 to build what you want, where you want it
Kevin DeRudder
 
PPTX
Windows8 metro presentationupdated
Dhananjay Kumar
 
PPTX
Toronto User groups workshop - 2013-03-10 - HTML5 & Windows 8, friends with b...
Frédéric Harper
 
PDF
What Web Developers Need to Know to Develop Windows 8 Apps
Doris Chen
 
PPTX
WinJS at NYC Code Camp 2012
Dmitri Artamonov
 
PDF
netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8
netmind
 
PDF
#win8acad : Building a Windows 8 Metro Style UI
Frederik De Bruyne
 
PDF
Every Web Developer is a Win8 developer
Kevin DeRudder
 
PPTX
Windows 8 store apps development
Ahmed Emad
 
PPTX
Windows8 lightningtalk
carlspierre
 
PPTX
Windows 8 Pure Imagination - 2012-11-24 - Getting your HTML5 game Windows 8 r...
Frédéric Harper
 
Microsoft PT TechRefresh html win8.1
Alexandre Marreiros
 
What’s new in WinJS? Windows Phone 8.1 and the road ahead
Nguyên Phạm
 
Building native Win8 apps with YUI
Tilo Mitra
 
Windows 8 for Web Developers
Gustaf Nilsson Kotte
 
Building Beautiful and Interactive Windows 8 apps with JavaScript, HTML5 & CSS3
Doris Chen
 
Win j svsphonegap-damyan-petev-mihail-mateev
Mihail Mateev
 
Use html5 to build what you want, where you want it
Kevin DeRudder
 
Windows8 metro presentationupdated
Dhananjay Kumar
 
Toronto User groups workshop - 2013-03-10 - HTML5 & Windows 8, friends with b...
Frédéric Harper
 
What Web Developers Need to Know to Develop Windows 8 Apps
Doris Chen
 
WinJS at NYC Code Camp 2012
Dmitri Artamonov
 
netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8
netmind
 
#win8acad : Building a Windows 8 Metro Style UI
Frederik De Bruyne
 
Every Web Developer is a Win8 developer
Kevin DeRudder
 
Windows 8 store apps development
Ahmed Emad
 
Windows8 lightningtalk
carlspierre
 
Windows 8 Pure Imagination - 2012-11-24 - Getting your HTML5 game Windows 8 r...
Frédéric Harper
 
Ad

Recently uploaded (20)

PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 

Getting Started Building Windows 8 HTML/JavaScript Metro Apps

Editor's Notes

  • #5: Basic slide to make sure everyone watching knows we&apos;ll be focusing on HTML/JavaScript Metro apps.
  • #6: Uses standards-based CSS
  • #9: In addition to the main &quot;canvas&quot;, several additional UI surfaces are available. Also support for:Flyout - A flyout is a lightweight popup that is used to temporarily show UI.ToastsErrorshttp://code.msdn.microsoft.com/windowsapps/Message-dialog-sample-3106f44a
  • #10: CSS3 Flexible Box layout can adapt to multiple screen sizes and enable digital newspaper, magazine, and other digital print media consumptive scenarios.CSS3 Grid alignment divides available space for lay out into columns and rows using a set of predictable sizing behaviors. CSS3 Multi-column layout supports content flow from one column to another for an arbitrary number of columns.http://msdn.microsoft.com/en-us/library/windows/apps/hh465327(v=VS.85).aspxhttp://msdn.microsoft.com/en-us/library/windows/apps/hh465451(v=VS.85).aspx#layout_controls
  • #17: When a running app is activated, the system raises the WinJS.Application.activated event only.When a page is refreshed, only the DOMContentLoaded and window.load events are raised.Checkpoint example:function checkpointHandler(eventArgs) {varstateObject = new Object(); // TODO: Populate the state object with app data // Save the state object to the session objectapp.sessionState.stateObject = stateObject;}Windows.UI.WebUI.WebUIApplication.resuming
  • #19: http://go.microsoft.com/fwlink/?LinkId=227203http://msdn.microsoft.com/en-us/library/windows/apps/hh465165(v=VS.85).aspxhttp://channel9.msdn.com/events/BUILD/BUILD2011/APP-206T
  • #22: http://go.microsoft.com/fwlink/?LinkId=227203http://msdn.microsoft.com/en-us/library/windows/apps/hh465165(v=VS.85).aspxhttp://channel9.msdn.com/events/BUILD/BUILD2011/APP-206T