SlideShare a Scribd company logo
http://netponto.org

Windows 8.1 with HTML5/JS
Alexandre Marreiros

44ª Reunião Presencial @ LISBOA
DateTime.Parse(“18-01-2014", new CultureInfo("pt-PT"));

hashtag #netponto
About / Contact
Alexandre Marreiros
Who
–
–
–
–
–
–

CTO @ Innovagency
Software Dev/Arch as Independent
Technical Trainer and Speaker as Independent
Technical Writer
UX Consultant
Lecturer@ EDIT

Contact
– amarreiros@gmail.com
– @alexmarreiros
– Digitalmindignition.com
Agenda
– Windows 8.1 Platform / API
– Windows 8.1 Tech view HTML 5 vs XAML
– Windows 8.1 And Windows Phone 8
– Windows 8.1 Tech view HTML
Windows 8.1 Store Apps
Windows 8.1 APIS
Windows 8.1 APIS

http://msdn.microsoft.com/en-us/library/windows/apps/bg182410.aspx
Windows 8.1 Store Apps Platform
Windows 8.1 & Windows Phone 8

http://www.bubblews.com/news/1730683-microsoft-to-combine-their-windows-8-and-windows-phone-app-stores
Windows 8.1 & Windows Phone 8

MSDN Magazine
Windows 8.1 & Windows Phone 8
Windows 8.1 & Windows Phone 8
Sharing technique

Separate UI and app logic using the Model-ViewViewModel pattern
Share functionality using Portable Class Libraries
Share code with Add as Link

Share using Windows Runtime Components

Sharing XAML UI

Conditional compilation with preprocessor directives

When to use

This guidance is applicable to many app types, but particularly to apps that have a XAML UI.
Separation allows you to write the app logic and to concentrate on user experience design
separately. An added benefit is that your app logic is more likely to be common for your app on
both platforms, and therefore is a great candidate for code sharing using the rest of the
techniques described here. Model-View-ViewModel (MVVM) is a great way to achieve this
separation.
Windows Phone 8 and Windows 8 share the same .NET Framework engine. In a XAML app, most
of your app logic will be written in managed code. If you are using the MVVM design pattern, you
have the potential to share your viewmodel and potentially your model. Note that Portable Class
Libraries are a .NET Framework concept and don’t support C++.
Use this technique for code that is non-portable and therefore can’t be implemented in a
Portable Class Library. For example, Windows Phone 8 and Windows 8 can use the common
Windows Runtime API surface to harness the power of each platform for networking, proximity,
in-app purchase, and many other features. Portable Class Libraries don’t support Windows
Runtime API. Instead, you can abstract this non-portable code, which is common to both
platforms, into a class that can be shared using Add as Link in Visual Studio. In C++ projects files
are added to projects as linked files by default.
In addition to consuming the common Windows Runtime API available on both platforms, you
can write your own Windows Runtime Component to make your functionality available in all
supported languages. This can be written in C++ and consumed by C# or VB. This is a very useful
technique for language interoperability or for when you want to write compute-intensive code in
C++ and use it in all languages.
The UI in Windows Phone 8 and Windows 8 is written in XAML. However, the XAML
implementations are not portable between the platforms. But you can isolate some of your
custom basic UI building blocks into UserControls and share those classes as linked files that will
be compiled for each platform. This technique is limited and should be used only for simple,
reusable parts of your UI. The core of your UI should be built and tailored separately for each
platform.
If you have functionality that’s implemented differently for Windows Phone 8 and Windows 8,
you can use conditional compilation to compile the code suitably for each platform. You can’t use
conditional compilation in a Portable Class Library.
Windows 8.1 & Windows Phone 8
Windows 8.1 & Windows Phone 8
Windows Phone 8

View technologies

Windows 8.1
Windows 8.1 & Windows Phone 8

WP 8 APP

W 8 APP based on
HTML 5
Windows 8.1 & Windows Phone 8
Windows 8.1 & Windows Phone 8

But today we will not talk about responsive or cross device development or pattern’s, just want that you
keep in mind that there are diferences and even if we want a ap for wp and windowa we can still use HTML
5 in Windows. Becouse even using xaml we may not have/want a total app reuse.
Windows 8.1 With HTML
“It also means that you’ll be able to leverage existing investments in JavaScript libraries and CSS
template repositories: writing a native app doesn’t force you to switch frameworks or engage in
expensive porting work. That said, it is also possible to use multiple languages to write an app,
leveraging the dynamic nature of JavaScript for app logic while leveraging languages like C# and
C++ for more computationally intensive tasks”

Kraig Brockschmidt
Windows 8.1 With HTML
- Reuse already tested front end code ( Forms, animations);
- Explore CSS, HTML & JS flexibility
- Reuse KB from the past

- Adoption in app development of Professionals with a estetical, UX and
ergonomic sense
Windows 8.1 With HTML
Other platforms that run HTML and JavaScript
native:
• FirefoxOS
• WebOS
Windows 8.1 With HTML
Windows8.1 html5 dev paradigm discussion netponto
Windows8.1 html5 dev paradigm discussion netponto
Windows8.1 html5 dev paradigm discussion netponto
Windows 8.1 With HTML
Popular features of CSS 3 are well supported in Windows 8.1
Windows 8.1 With HTML
Popular features of HTML 5 are well supported in Windows 8.1
Windows 8.1 With HTML

Windows
Windows 8.1 With HTML
HTML 5 based Windows
Store Apps Container
Windows 8.1 With HTML
WINJS is a collection of toolkits to make building Windows Store apps fast and
easy

Windows 8 app

Windows 8.1 app

WinJS 1.0

WinJS 2.0
Windows 8.1 With HTML
WinJS controls declaration
<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.

In the HTML File
<div id="calendarDiv" ></div>
In th JS file
var calendarDiv = document.getElementById("calendar");
var calendarctrl = new WinJS.UI.DatePicker(calendarDiv);

 Imperative Way
Windows 8.1 With HTML
We can use any javascript framework once she
run on Internet Explorer 11
Windows 8.1 With HTML
Tools
Windows 8.1 With HTML
Visual Studio offers a set of template to make easy to start a project
Windows 8.1 With HTML
Visual Studio project struture
WINRT library instaciated directly by
the app
Windows 8.1 With HTML
CSS Libraries for the Windows store
app
Windows Store App Images

JavaScript
Windows 8.1 With HTML
App certify
App Manifest
Windows 8.1 With HTML
WinJS 2.0 what’s new

Improved Controls

Infrastructure

• List view

• Scheduler

• App bar

• Dispose model
• Async debugging

New Controls

Building Blocks

• Hub

• Binding template

• Navigation bar

• Repeater

• Search box

• Item Container

• Back button
Windows 8.1 With HTML
Windows 8.1 With HTML
Windows 8.1 With HTML
Windows 8.1 With HTML
Windows 8.1 With HTML
Windows 8.1 With HTML

Conider the declaration of a list
Windows 8.1 With HTML

Define the list Template
Windows 8.1 With HTML
Windows 8.1 With HTML
• ListView Changes
• Hub Control

• WebView Control
Are 3 controls that worth also a view let’s see this 3 in
action
Windows 8.1 With HTML
Windows 8.1 With HTML

Prior to Windows 8.1 you only had Iframes as a way to embeb external sites
Full reference about WebView http://blogs.windows.com/windows/b/appbuilder/archive/2013/07/17/what-snew-in-webview-in-windows-8-1.aspx
Windows 8.1 With HTML
Windows 8.1 With HTML
Windows 8.1 With HTML
Recomended

Article for the ones starting to debug Windows 8 .1 HTMl store APPs with visual Studio 2013

http://msdn.microsoft.com/en-us/library/windows/apps/hh441474(v=vs.120).aspx
Windows 8.1 With HTML
Windows 8.1 With HTML
Beware
Windows 8.1 With HTML
Beware
Recap
References
- Programming Windows Store Apps With HTML, CSS and Javascript Second Edition, Microsoft Press
- Windows 8.1 Controls - Windows Store Apps with HTML5 Refresh (http://www.youtube.com/watch?v=Drkh8Pb2li4)
- HTML Controls for Windows Store APPS (http://msdn.microsoft.com/en-us/library/windows/apps/bg182879.aspx)
- API changes for Windows 8.1 (http://msdn.microsoft.com/en-us/library/windows/apps/dn263112.aspx)
- Windows Dsev Center (http://msdn.microsoft.com/en-US/windows/apps/br211386)
- Windows 8.1 Store apps starter pack with canonical samples (http://code.msdn.microsoft.com/windowsapps/Windows-8Modern-Style-App-Samples)
- Building Windows Store 8.1 apps using HTML, CSS and JavaScript @Channel 9
(http://channel9.msdn.com/Events/TechDays/TechDays-13-Basel/Building-Windows-Store-8-1-apps-using-HTML-CSS-andJavaScript)
Onlne Live event : Windows 8.1 Developer Training: Geek Edition @ Microsoft Academy
(http://www.microsoftvirtualacademy.com/liveevents/windows-8-1-developer-training-geek-edition#?fbid=E0I-ctThA1I)
Contacts
– amarreiros@gmail.com
– @alexmarreiros
– Digitalmindignition.com

http://www.sprintfeed.com/2011/10/introducing-its-your-turn/

Questions
Próximas reuniões presenciais
23/11/2013 – Novembro (Lisboa)
30/11/2013 – Novembro (Porto)
14/12/2013 – Dezembro (Lisboa)
18/01/2014 – Janeiro (Lisboa)

Reserva estes dias na agenda! :)
Patrocinadores “GOLD”

Twitter: @PTMicrosoft http://www.microsoft.com/portugal
Patrocinadores “GOLD”

Twitter: @nokia

http://www.nokia.com
Patrocinadores “Silver”
Patrocinadores “Bronze”
Próximas reuniões presenciais
18/01/2014 – Janeiro (Lisboa)
01/02/2014 – Hackathon! (Lisboa)
22/02/2014 – Fevereiro (Lisboa)
22/03/2014 – Março (Lisboa)
12/04/2014 – SQL Saturday! (Lisboa)
19/04/2014 – Abril (Lisboa)

Reserva estes dias na agenda! :)

More Related Content

PPTX
Windows 10 pentru dezvoltatori - InfoEducație 2015
PPTX
Universal Windows Platform Overview
PPS
01 asp.net session01
PDF
20150728 100분만에 배우는 windows 10 앱 개발
DOCX
PPTX
Top 10 Differences between developing Windows Phone and Store apps
PPTX
Windows 10 e Universal Windows Platform
PPT
Developing Microsoft .NET Applications for Windows
Windows 10 pentru dezvoltatori - InfoEducație 2015
Universal Windows Platform Overview
01 asp.net session01
20150728 100분만에 배우는 windows 10 앱 개발
Top 10 Differences between developing Windows Phone and Store apps
Windows 10 e Universal Windows Platform
Developing Microsoft .NET Applications for Windows

What's hot (20)

PPT
Introduction to vb.net
PPTX
Html 5
PPTX
Sharbani bhattacharya Visual Basic
PPTX
Vb.net ide
PPTX
Introduction to UWP - Universal Windows Platform Application Development
DOCX
Asp notes
PPT
Introduction to Magento - KNOWARTH
PPT
Vc++ 3
PPTX
Universal windows platform - Application development done right
PDF
PPTX
Understanding IDEs
PDF
Introduction to universal windows platform(uwp) app development
PPTX
Presentation[1]
PPTX
Web development tool
PPTX
Visual basic 6
KEY
Joomla 3 - An overview
PPTX
Windows 8
PPTX
Asp.net
PDF
Introduction to vb.net
Html 5
Sharbani bhattacharya Visual Basic
Vb.net ide
Introduction to UWP - Universal Windows Platform Application Development
Asp notes
Introduction to Magento - KNOWARTH
Vc++ 3
Universal windows platform - Application development done right
Understanding IDEs
Introduction to universal windows platform(uwp) app development
Presentation[1]
Web development tool
Visual basic 6
Joomla 3 - An overview
Windows 8
Asp.net
Ad

Viewers also liked (20)

PDF
Big & machine learning
PDF
We are Pixelmatters: Creating a culture of excellence
PDF
"Estratégia para “Responsive UX”"- #7 Industry Sessions by EDIT. / UX & Resp...
PDF
Compreender UX & Responsive Design - #8 Industry Sessions by EDIT. | UX & Res...
PDF
Responsive Assets: Flower Power use case - #7 Industry Sessions by EDIT. | UX...
PPTX
Pragmatic Responsive web design systems - #7 Industry Sessions by EDIT. | UX...
PDF
Moche vs Meo Sudoeste - Talkfest'15
PDF
Listening on the Social Web: How To Make Sense of all the Noise
PPTX
Jws masterclass progressive web apps
PDF
UX Origens - #12 Industry Sessions by EDIT. | UX & Responsive Design
PDF
Industry Sessios by EDIT. - Talk #2 - Andreia Santos
PDF
UX Inclusivo: Criar experiências acessíveis a todos - #12 Industry Sessions b...
PDF
O poder do Storytelling: da prototipagem à experiência final - #8 Industry Se...
PDF
E-commerce and Marketing Challenges for New Emerging Economies - #11 Industry...
PDF
Industry Sessios by EDIT. - Talk #1 - João Vitória e Filipa Sarmento
PDF
Bad UX Kills People - #12 Industry Sessions by EDIT. | UX & Responsive Design
PPT
2008 Benefit St RISD Fair
PDF
Industry Sessios by EDIT. - Talk #2 - Diogo Silva & Roberto Cortez
PDF
O segredo para um Marketing Digital eficaz - #11 Industry Sessions by EDIT. |...
Big & machine learning
We are Pixelmatters: Creating a culture of excellence
"Estratégia para “Responsive UX”"- #7 Industry Sessions by EDIT. / UX & Resp...
Compreender UX & Responsive Design - #8 Industry Sessions by EDIT. | UX & Res...
Responsive Assets: Flower Power use case - #7 Industry Sessions by EDIT. | UX...
Pragmatic Responsive web design systems - #7 Industry Sessions by EDIT. | UX...
Moche vs Meo Sudoeste - Talkfest'15
Listening on the Social Web: How To Make Sense of all the Noise
Jws masterclass progressive web apps
UX Origens - #12 Industry Sessions by EDIT. | UX & Responsive Design
Industry Sessios by EDIT. - Talk #2 - Andreia Santos
UX Inclusivo: Criar experiências acessíveis a todos - #12 Industry Sessions b...
O poder do Storytelling: da prototipagem à experiência final - #8 Industry Se...
E-commerce and Marketing Challenges for New Emerging Economies - #11 Industry...
Industry Sessios by EDIT. - Talk #1 - João Vitória e Filipa Sarmento
Bad UX Kills People - #12 Industry Sessions by EDIT. | UX & Responsive Design
2008 Benefit St RISD Fair
Industry Sessios by EDIT. - Talk #2 - Diogo Silva & Roberto Cortez
O segredo para um Marketing Digital eficaz - #11 Industry Sessions by EDIT. |...
Ad

Similar to Windows8.1 html5 dev paradigm discussion netponto (20)

PPTX
Windows8.1overviewnetponto
PPTX
Maximizing code reuse between Windows Phone 8 and Windows 8 (DevTeach Toronto...
DOCX
Difference between .net and asp.net all you need to know
PPT
European SharePoint Conference: Mobile Applications for SharePoint using HTML5
DOCX
Over view of Technologies
PDF
Develop an app for Windows 8 using HTML5
PPTX
Introducing the Windows Phone 8.1 App Development Platform
PPTX
Mobile applications for SharePoint using HTML5
PPTX
Introduction to asp
PDF
Top 11 Front-End Web Development Tools To Consider in 2020
PPTX
Windows phone 8 overview
PDF
Xe OneDay - Modernizing Enterprise Apps
DOCX
Online advertising management system
DOCX
Online advertising management system
PDF
How to modernise WPF and Windows Forms applications with Windows Apps SDK
PPTX
PPTX
Nashua Cloud .NET User Group - Basic WP8 App Dev With XAML and C#, April 2013
PPTX
Developing Windows 10 Hosted Web Apps
PDF
Asp.netrole
PPTX
Windows store app development V1
Windows8.1overviewnetponto
Maximizing code reuse between Windows Phone 8 and Windows 8 (DevTeach Toronto...
Difference between .net and asp.net all you need to know
European SharePoint Conference: Mobile Applications for SharePoint using HTML5
Over view of Technologies
Develop an app for Windows 8 using HTML5
Introducing the Windows Phone 8.1 App Development Platform
Mobile applications for SharePoint using HTML5
Introduction to asp
Top 11 Front-End Web Development Tools To Consider in 2020
Windows phone 8 overview
Xe OneDay - Modernizing Enterprise Apps
Online advertising management system
Online advertising management system
How to modernise WPF and Windows Forms applications with Windows Apps SDK
Nashua Cloud .NET User Group - Basic WP8 App Dev With XAML and C#, April 2013
Developing Windows 10 Hosted Web Apps
Asp.netrole
Windows store app development V1

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
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
Boot strapandresponsiveintro
PPTX
WebSite development using WinJS
PPTX
Universal Apps Development using HTML 5 and WINJS
PPTX
GWAB Mobile Services
PPTX
Html5ignition newweborder
PPTX
Mobile first responsive industry sessions
PPTX
Microsoft PT TechRefresh html win8.1
Agular fromthetrenches2netponto
Whats a Chat bot
Type of angular 2
Xamarin devdays 2017 - PT - connected apps
ASP.NEt MVC and Angular What a couple
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
Boot strapandresponsiveintro
WebSite development using WinJS
Universal Apps Development using HTML 5 and WINJS
GWAB Mobile Services
Html5ignition newweborder
Mobile first responsive industry sessions
Microsoft PT TechRefresh html win8.1

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Cloud computing and distributed systems.
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
KodekX | Application Modernization Development
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Encapsulation theory and applications.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Approach and Philosophy of On baking technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Modernizing your data center with Dell and AMD
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
cuic standard and advanced reporting.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Cloud computing and distributed systems.
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KodekX | Application Modernization Development
“AI and Expert System Decision Support & Business Intelligence Systems”
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Encapsulation theory and applications.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Network Security Unit 5.pdf for BCA BBA.
Dropbox Q2 2025 Financial Results & Investor Presentation
Approach and Philosophy of On baking technology
The AUB Centre for AI in Media Proposal.docx
Encapsulation_ Review paper, used for researhc scholars
Modernizing your data center with Dell and AMD
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
cuic standard and advanced reporting.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows

Windows8.1 html5 dev paradigm discussion netponto

  • 1. http://netponto.org Windows 8.1 with HTML5/JS Alexandre Marreiros 44ª Reunião Presencial @ LISBOA DateTime.Parse(“18-01-2014", new CultureInfo("pt-PT")); hashtag #netponto
  • 2. About / Contact Alexandre Marreiros Who – – – – – – CTO @ Innovagency Software Dev/Arch as Independent Technical Trainer and Speaker as Independent Technical Writer UX Consultant Lecturer@ EDIT Contact – [email protected] – @alexmarreiros – Digitalmindignition.com
  • 3. Agenda – Windows 8.1 Platform / API – Windows 8.1 Tech view HTML 5 vs XAML – Windows 8.1 And Windows Phone 8 – Windows 8.1 Tech view HTML
  • 7. Windows 8.1 Store Apps Platform
  • 8. Windows 8.1 & Windows Phone 8 http://www.bubblews.com/news/1730683-microsoft-to-combine-their-windows-8-and-windows-phone-app-stores
  • 9. Windows 8.1 & Windows Phone 8 MSDN Magazine
  • 10. Windows 8.1 & Windows Phone 8
  • 11. Windows 8.1 & Windows Phone 8 Sharing technique Separate UI and app logic using the Model-ViewViewModel pattern Share functionality using Portable Class Libraries Share code with Add as Link Share using Windows Runtime Components Sharing XAML UI Conditional compilation with preprocessor directives When to use This guidance is applicable to many app types, but particularly to apps that have a XAML UI. Separation allows you to write the app logic and to concentrate on user experience design separately. An added benefit is that your app logic is more likely to be common for your app on both platforms, and therefore is a great candidate for code sharing using the rest of the techniques described here. Model-View-ViewModel (MVVM) is a great way to achieve this separation. Windows Phone 8 and Windows 8 share the same .NET Framework engine. In a XAML app, most of your app logic will be written in managed code. If you are using the MVVM design pattern, you have the potential to share your viewmodel and potentially your model. Note that Portable Class Libraries are a .NET Framework concept and don’t support C++. Use this technique for code that is non-portable and therefore can’t be implemented in a Portable Class Library. For example, Windows Phone 8 and Windows 8 can use the common Windows Runtime API surface to harness the power of each platform for networking, proximity, in-app purchase, and many other features. Portable Class Libraries don’t support Windows Runtime API. Instead, you can abstract this non-portable code, which is common to both platforms, into a class that can be shared using Add as Link in Visual Studio. In C++ projects files are added to projects as linked files by default. In addition to consuming the common Windows Runtime API available on both platforms, you can write your own Windows Runtime Component to make your functionality available in all supported languages. This can be written in C++ and consumed by C# or VB. This is a very useful technique for language interoperability or for when you want to write compute-intensive code in C++ and use it in all languages. The UI in Windows Phone 8 and Windows 8 is written in XAML. However, the XAML implementations are not portable between the platforms. But you can isolate some of your custom basic UI building blocks into UserControls and share those classes as linked files that will be compiled for each platform. This technique is limited and should be used only for simple, reusable parts of your UI. The core of your UI should be built and tailored separately for each platform. If you have functionality that’s implemented differently for Windows Phone 8 and Windows 8, you can use conditional compilation to compile the code suitably for each platform. You can’t use conditional compilation in a Portable Class Library.
  • 12. Windows 8.1 & Windows Phone 8
  • 13. Windows 8.1 & Windows Phone 8 Windows Phone 8 View technologies Windows 8.1
  • 14. Windows 8.1 & Windows Phone 8 WP 8 APP W 8 APP based on HTML 5
  • 15. Windows 8.1 & Windows Phone 8
  • 16. Windows 8.1 & Windows Phone 8 But today we will not talk about responsive or cross device development or pattern’s, just want that you keep in mind that there are diferences and even if we want a ap for wp and windowa we can still use HTML 5 in Windows. Becouse even using xaml we may not have/want a total app reuse.
  • 17. Windows 8.1 With HTML “It also means that you’ll be able to leverage existing investments in JavaScript libraries and CSS template repositories: writing a native app doesn’t force you to switch frameworks or engage in expensive porting work. That said, it is also possible to use multiple languages to write an app, leveraging the dynamic nature of JavaScript for app logic while leveraging languages like C# and C++ for more computationally intensive tasks” Kraig Brockschmidt
  • 18. Windows 8.1 With HTML - Reuse already tested front end code ( Forms, animations); - Explore CSS, HTML & JS flexibility - Reuse KB from the past - Adoption in app development of Professionals with a estetical, UX and ergonomic sense
  • 19. Windows 8.1 With HTML Other platforms that run HTML and JavaScript native: • FirefoxOS • WebOS
  • 24. Windows 8.1 With HTML Popular features of CSS 3 are well supported in Windows 8.1
  • 25. Windows 8.1 With HTML Popular features of HTML 5 are well supported in Windows 8.1
  • 26. Windows 8.1 With HTML Windows
  • 27. Windows 8.1 With HTML HTML 5 based Windows Store Apps Container
  • 28. Windows 8.1 With HTML WINJS is a collection of toolkits to make building Windows Store apps fast and easy Windows 8 app Windows 8.1 app WinJS 1.0 WinJS 2.0
  • 29. Windows 8.1 With HTML WinJS controls declaration <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. In the HTML File <div id="calendarDiv" ></div> In th JS file var calendarDiv = document.getElementById("calendar"); var calendarctrl = new WinJS.UI.DatePicker(calendarDiv);  Imperative Way
  • 30. Windows 8.1 With HTML We can use any javascript framework once she run on Internet Explorer 11
  • 31. Windows 8.1 With HTML Tools
  • 32. Windows 8.1 With HTML Visual Studio offers a set of template to make easy to start a project
  • 33. Windows 8.1 With HTML Visual Studio project struture WINRT library instaciated directly by the app
  • 34. Windows 8.1 With HTML CSS Libraries for the Windows store app Windows Store App Images JavaScript
  • 35. Windows 8.1 With HTML App certify App Manifest
  • 36. Windows 8.1 With HTML WinJS 2.0 what’s new Improved Controls Infrastructure • List view • Scheduler • App bar • Dispose model • Async debugging New Controls Building Blocks • Hub • Binding template • Navigation bar • Repeater • Search box • Item Container • Back button
  • 42. Windows 8.1 With HTML Conider the declaration of a list
  • 43. Windows 8.1 With HTML Define the list Template
  • 45. Windows 8.1 With HTML • ListView Changes • Hub Control • WebView Control Are 3 controls that worth also a view let’s see this 3 in action
  • 47. Windows 8.1 With HTML Prior to Windows 8.1 you only had Iframes as a way to embeb external sites Full reference about WebView http://blogs.windows.com/windows/b/appbuilder/archive/2013/07/17/what-snew-in-webview-in-windows-8-1.aspx
  • 50. Windows 8.1 With HTML Recomended Article for the ones starting to debug Windows 8 .1 HTMl store APPs with visual Studio 2013 http://msdn.microsoft.com/en-us/library/windows/apps/hh441474(v=vs.120).aspx
  • 52. Windows 8.1 With HTML Beware
  • 53. Windows 8.1 With HTML Beware
  • 54. Recap
  • 55. References - Programming Windows Store Apps With HTML, CSS and Javascript Second Edition, Microsoft Press - Windows 8.1 Controls - Windows Store Apps with HTML5 Refresh (http://www.youtube.com/watch?v=Drkh8Pb2li4) - HTML Controls for Windows Store APPS (http://msdn.microsoft.com/en-us/library/windows/apps/bg182879.aspx) - API changes for Windows 8.1 (http://msdn.microsoft.com/en-us/library/windows/apps/dn263112.aspx) - Windows Dsev Center (http://msdn.microsoft.com/en-US/windows/apps/br211386) - Windows 8.1 Store apps starter pack with canonical samples (http://code.msdn.microsoft.com/windowsapps/Windows-8Modern-Style-App-Samples) - Building Windows Store 8.1 apps using HTML, CSS and JavaScript @Channel 9 (http://channel9.msdn.com/Events/TechDays/TechDays-13-Basel/Building-Windows-Store-8-1-apps-using-HTML-CSS-andJavaScript) Onlne Live event : Windows 8.1 Developer Training: Geek Edition @ Microsoft Academy (http://www.microsoftvirtualacademy.com/liveevents/windows-8-1-developer-training-geek-edition#?fbid=E0I-ctThA1I)
  • 56. Contacts – [email protected] – @alexmarreiros – Digitalmindignition.com http://www.sprintfeed.com/2011/10/introducing-its-your-turn/ Questions
  • 57. Próximas reuniões presenciais 23/11/2013 – Novembro (Lisboa) 30/11/2013 – Novembro (Porto) 14/12/2013 – Dezembro (Lisboa) 18/01/2014 – Janeiro (Lisboa) Reserva estes dias na agenda! :)
  • 58. Patrocinadores “GOLD” Twitter: @PTMicrosoft http://www.microsoft.com/portugal
  • 62. Próximas reuniões presenciais 18/01/2014 – Janeiro (Lisboa) 01/02/2014 – Hackathon! (Lisboa) 22/02/2014 – Fevereiro (Lisboa) 22/03/2014 – Março (Lisboa) 12/04/2014 – SQL Saturday! (Lisboa) 19/04/2014 – Abril (Lisboa) Reserva estes dias na agenda! :)

Editor's Notes

  • #38: Explain: APP BAR NAV BARBackButton HUB controlListViewControlRepeaterWebview in thepastweonlyhaveiframe (independentnavigationstacklike a browser runing in theapp sport a stringsourcegood to readbadwebservices)