Top Banner
22

Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Apr 09, 2017

Download

Technology

goodfriday
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Building Rich Web Experiences Using Silverlight and JavaScript for Developers
Page 2: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Building Rich Web Experiences using Silverlight and JavaScript for DevelopersJoe StegmanGroup Program ManagerMicrosoft Corporation

Page 3: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

AgendaOverviewIntroduction to Silverlight JavaScript DevelomentDesigner and Development ToolsSilverlight ComponentsDeveloping with Silverlight

Page 4: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Why Silverlight V1?Richer Media

(WMV Investments)

Broad Reach

Visual StudioExpression Studio

Page 5: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Silverlight development with JavaScriptSilverlight development is similar to HTML

devevelopmentPresentation format for Silverlight is XAML

XAML is XML (markup)Silverlight V1.0 programming language is JavaScript

AJAX tricks work with SilverlightMinimum tools are a text editor and a web browserFor 1.1 development see:

Dev22/Dev07: Silverlight with .NET (5/1, 8:30 and 10:15)

Page 6: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Getting Started

demo

Page 7: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Designer and Development ToolsDevelopers (focus of this session)

Visual Studio 2005 and OrcasFirebugAny text editor

DesignersExpression Blend and Design

DES02: Building Rich Web Experiences (4/30, 15:00)XAML exporters

Adobe Illustrator, Office (good for font subsetting), Others…

Page 8: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Silverlight V1.0 ComponentsKey Components in Silverlight V1.0

2D Grapics (shapes, transformations, cliping, masking)AnimationsInput: Mouse and KeyboardMedia (WMV, WMA, MP3)Imaging (JPG, PNG)Text (static and flow)HTTP downloaderXAML Parser (includes CreateFromXAML API)JavaScript DOM

Page 9: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Graphics and Animations in Silverlight2D Graphics

Standard shapes, masking and clippingTransformations: skew, rotate, scale, translate, matrix

Animation BasicsAnimations change properties over timeSupport linear, discrete and spline animationAnimatable property types:

Double, Color, PointAnimations and graphics are defined using XAML

Page 10: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

The Basics (findName) and an introduction to Graphics and Animations

demo

Page 11: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Silverlight JavaScript BasicsSilverlight XAML elements are scriptable via the browser script engine (JavaScript)Scriptable objects are obtained via findName

Scriptable objects (elements) can be controlled via properties and methodsModels JavaScript and HTML DOM interactionfindName is equivalent to document.getElementById()Supports tree walking via children collection

Position set using "Canvas.Top" and "Canvas.Left"Size can be scaled or set via Height/Width

Page 12: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

MediaMedia Features

Video: WMV V7, V8, V9, VC-1Audio: WMA V7, V8, V9 (standard), MP3Multiple options for deploying media

HTTP progressive downloadIntegration with Windows Media Server

Extensive WMV eco-systemRelated Sessions:

XD001: Deep Dive on Silverlight Media (5/1, 14:15)Dev13: Creating and Delivering Rich Media (4/30, 16:30)

Page 13: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Basic Media

demo

Page 14: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

TextGlyphs

Fixed textFull Unicode glyph rendering supportDoes not support layout (word/line breaking)

TextBlockBasic layout support

Left-aligned, English based text wrappingSupport font encryption and compressionV1 supports 64K Unicode Basic Multi-langual Plane Post V1, increased language support

Page 15: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Downloader and CreateFromXAMLHTTP Downloader

V1.0 supports HTTP gets (async and sync)Provides download progressZIP packagingSimilar to XMLHTTP

CreateFromXAMLPrimary way in V1.0 to dynamically create contentSupports namescopes (for name collisions)

Page 16: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Text, the Downloader and CreateFromXAML

demo

Page 17: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Using AJAX Techniques

demo

Page 18: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Roadmap

Silverlight 1.0 Beta

Silverlight 1.1

Alpha4/30/07

Silverlight 1.0

Summer 07

Silverlight 1.1 Beta

Q3/07

Silverlight 1.1TBD

Expression

Studio Expression Blend 2

May Preview4/30/07

xMedia

Encoder

Summer 07

xWeb 2August PreviewxBlend 2August Preview

Expression

Studio 2

February 08

Silverlight Tools

Alpha for Visual Studio

“Orcas” Beta

4/30/07

TBD

Silverlight Tools

Beta for Visual Studio

“Orcas”

TBD

Silverlight

Expression

Visual Studio

Page 19: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Resourceshttp://www.silverlight.nethttp://www.microsoft.com/silverlighthttp://msdn.microsoft.com/silverlighthttp://silverlight.net/forumshttp://msdn2.microsoft.com/en-us/library/bb188266.aspxhttp://blogs.msdn.com/mharshhttp://blogs.msdn.com/jstegman

Page 20: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Questions?

Page 21: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

Please fill out your evalevaluation

Page 22: Building Rich Web Experiences Using Silverlight and JavaScript for Developers

© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions,

it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.