windows 8 metro apps with wijmo › gccontent › blogs › ...windows 8 metro apps with html &...

20
Windows 8 Metro Apps with HTML & jQuery

Upload: others

Post on 01-Jul-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

Windows 8 Metro Apps with HTML & jQuery

Page 2: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

about:me

Rich Dudley

Technical Evangelist [email protected]

@rj_dudley

c1.ms/richd

Page 3: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(this).baked(‘not’);

• It’s the first beta

• Many, many months from RTM

• Don’t draw any conclusions from what

you see

• Dev platform could all change tomorrow

• Or not

Page 4: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd
Page 5: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(‘metro’).choose();

• x86/x64 and ARM compatibility

• Windows Store (inc. trial API)

• Inter-app communication

• Better touch support

• Cloud sync with Live API

• Windows Phone 8 = Windows 8?

Page 6: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(‘runtime’).toggle();

• Two different runtimes – WinRT or Win32

• WinRT apps are sandboxed

• XAML + C/C++/C#/VB.NET or HTML + JS

• Not a different .NET – “profiled”

• Metro apps (even HTML/JS) are native

WinRT apps

• HTML/JS are IE 10 only

Page 7: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(‘buzzwords’).getList()

• Charms

• Tailored

• Immersive

• Connected

• Fluid

• Touch-first

• Interactive

• User multitasking

Page 8: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(‘tools’).get();

• Windows 8 Consumer Preview

• VS 11 Beta, Express or better

• Blend 5 for HTML

• New templates and controls

Page 9: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(‘dev’).how();

• HTML is UI, JS is like code behind

• Single-page apps

• More like writing user controls—only a

portion of the HTML page is used

• Have to put HTML and JS code in special

containers

• Cross domain requests and unsafe scripts

Page 10: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(‘winRt’).context();

• Local

– Full access to WinRT

– Limited web access

– Scripts must be packaged

• Web

– No access to WinRT

– Can make arbitrary web calls

– Scripts from CDN

Page 11: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(‘data’).access();

• No direct SQL Server drivers!

• Asynchronous communication only

• services + $.ajax()

• Isolated Storage

• IndexedDB

• Local libraries and devices

Page 12: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(‘metro’).design()

• 8 Traits of Great Metro Style Apps

http://channel9.msdn.com/Events/BUILD

/BUILD2011/BPS-1004

• Build for app scaling/resizing

– CSS3 media queries

– CSS grids (960.gs) + flexible controls

– SVG or pre-scaled images

– Snap!

Page 13: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$.navigateTo();

• Single page applications

• iFrame or WinJS fragments

• Context affects behavior of iFrame

Page 14: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(‘appState’).preserve();

• DOMContentLoaded

• “Activated”

• Window.load

• “Suspending”

• “Resuming”

Page 15: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(‘bugs’).find();

• IE10 only

• No developer tools (F12)

• No view source

• Primarily VS debugger

• Simulator target

• MessageDialog

Page 16: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(‘demo’).show();

Page 17: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(‘.resources’).use();

• Developing basic Metro style apps

(JavaScript) http://c1.ms/4f

• UX guidelines for Metro style app

development http://c1.ms/3u

• Recap post at http://c1.ms/richd

Page 18: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

$(‘#video’).play();

• http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-501T

• http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-527C

• http://channel9.msdn.com/Events/BUILD/BUILD2011/APP-740T

• http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-533T

• http://channel9.msdn.com/Events/BUILD/BUILD2011/PLAT-384P

• http://channel9.msdn.com/Events/BUILD/BUILD2011/APP-476T

Page 19: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

EVERYTHING YOU NEED TO BUILD A BETTER WEB

Wijmo is a complete kit of over 40

jQuery UI widgets with everything

from interactive menus to rich

charts. If you know jQuery, you

know Wijmo. Complete with

documentation and professional

support, every widget is hand-

crafted and includes premium

themes.

Page 20: Windows 8 Metro Apps with Wijmo › gccontent › blogs › ...Windows 8 Metro Apps with HTML & jQuery about:me Rich Dudley Technical Evangelist richd@componentone.com @rj_dudley c1.ms/richd

about:me

Rich Dudley

Technical Evangelist [email protected]

@rj_dudley

http://c1.ms/richd