WP8 HTML5/IE10 for Developers

Post on 14-Jan-2015

420 views 1 download

Tags:

description

 

Transcript of WP8 HTML5/IE10 for Developers

Pham.nguyen@Hotmail.comhttp://facebook.com/pham.nguyenit

IDC - http://www.idc.com/getdoc.jsp?containerId=prUS23480612

CSS 2D Transforms

CSS 3D Transforms

CSS Animations

CSS Backgrounds & Borders

CSS Color

CSS Device Adaptation*

CSS Flexbox*

CSS Fonts

CSS Grid*

CSS Image Values

(Gradients)

CSS Media Queries

CSS Multi-Column

CSS Namespaces

CSS OM Views

CSS Regions And

CSS Selectors

CSS Transitions

CSS Values And Units

Data URI

DOM Element Traversal

DOM HTML

DOM Level 3 Core

DOM Level 3 Events

DOM Style

DOM Traversal And Range

DOMParser And XMLSerializer

ECMAScript 5

Formdata

HTML5 Application Cache

HTML5 Async Scripts

HTML5 BlobBuilder

HTML5 Canvas

HTML5 Drag And Drop

HTML5 Forms And

Validation

HTML5 Geolocation

HTML5 Parser

HTML5 Sandbox

HTML5 Selection

HTML5 Semantic Elements

HTML5 Video And Audio

JavaScript Typed Arr

ICC Color Profiles

IndexedDB

Page Visibility

Pointer (Mouse, Pen, And

Touch) Events*

RequestAnimationFrame

Navigation Ti

Selectors API Level 2

SVG Filter Effects

SVG, Standalone And In HTML

Web Messaging

XHTML/XML

webBrowser.InvokeScript(“myFunction", “myArg1”);

webBrowser.InvokeScript(“eval”, “document.body.offsetHeight.toString()”);

webBrowser.InvokeScript(“execScript”, myScript.ToString());

XAML: <WebBrowser ScriptNotify=“Browser_ScriptNotify” />

JavaScript: window.external.notify(parameter);

C#: private void Browser_ScriptNotify(object sender, NotifyEventArgs e)

// use e.value to retrieve parameter

OnScriptNotify(object s, NotifyEventArgs e)

{

var metaData = e.Value;

if (metaData == ”captureImage”)

CaptureImage();

}

void CaptureImage

{

// captures the image using the Camera API

var path = CaptureImageFromCamera();

browser.NotifyScript(”captureImageCallback”,

new[] { path });

}

Javascript:

// pass request meta data to hostwindow.external.notify(”captureImage”);

Javascript:

// host calls back with the image path

function captureImageCallback(args) {

var img = document.getElementId(”x”);

img.src = args;

}

webBrowser.Background=“#ffff00”;

if (webBrowser.CanNavigateBack) webBrowser.GoBack();

if (webBrowser.CanNavigateForward) webBrowser.GoForward();

await webBrowser.ClearCookiesAsync();

await webBrowser.ClearInternetCacheAsync();

webBrowser.Navigate(new Uri("test.html", UriKind.Relative))

• Perform one way operations(WP7)

• Invoke Javascript callback methods

0

500

1000

1500

2000

2500

3000

3500

4000

I E 1 0 ( W P 8 ) H T M L 5 A P P ( W P 8 ) I P H O N E 5 S A F A R I I P H O N E 5 H T M L 5 A P P

SUNSPIDER 0.9.1 SCORE

LOWER IS BETTER

FREE

cross platform rapid cost effective

build beautiful delightful

immerse

integrated

http://phamnguyen.info

http://wpdev.ms/phonedevres

http://wpdev.ms/certreq

http://wpdev.ms/howtos

http://wpdev.ms/officialsamples

http://wpdev.ms/ahforum

http://wpdev.ms/devsupport