Silverlight 101 Ahead! If you know Silverlight and are looking for more advanced content check out...

33
Silverlight 101 Ahead! If you know Silverlight and are looking for more advanced content check out : ‘Microsoft Silverlight “Media” : Moving at 60fps’ (Breakers H) Microsoft Silverlight 4 Business Applications (Lagoon F)

description

Silverlight 101 Ahead! If you know Silverlight and are looking for more advanced content check out : ‘Microsoft Silverlight “Media” : Moving at 60fps’ (Breakers H) Microsoft Silverlight 4 Business Applications (Lagoon F). An Introduction to Developing Applications for Microsoft Silverlight. - PowerPoint PPT Presentation

Transcript of Silverlight 101 Ahead! If you know Silverlight and are looking for more advanced content check out...

Page 1: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Silverlight 101 Ahead!

If you know Silverlight and are looking for more advanced content check out :

‘Microsoft Silverlight “Media” : Moving at 60fps’(Breakers H)

Microsoft Silverlight 4 Business Applications(Lagoon F)

Page 2: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

An Introduction to Developing Applications for Microsoft Silverlight

Shawn OsterProgram Manager

[email protected]

Page 3: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Walk Away Knowing

How to create a Silverlight application

How to leverage your creativity

How to use the tools to make it happen

Page 4: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

What is Silverlight?

Powerful Development Platform

Engaging, Interactive User Experiences

Page 5: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Silverlight CapabilitiesInputs• Keyboard• Mouse• Touch• Ink

Media• Digital media capture & playback• VC1, WMA, MP3

Data• Language Integrated Query (LINQ)• LINQ to XML• XML• IsolatedStorageBase Class Library (BCL)• Generics• Collections• Cryptography• Threading

Windows Communication Foundation

• REST• RSS/ATOM• SOAP

XAMLUI Core• Vector• Animation• Text• Images

Page 6: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

CLOUDSCREEN

Phone EmulatorSampl

esDocumentati

onGuides Community

Packaging and Verification Tools

Notifications

Location Identity Feeds

MapsSocial

App DeploymentRegistration

Validation

Certification

Publishing

Marketplace

MO and CC Billing

Business Intelligence

Update Management

Application Platform High Level Architecture

Tools & Support

Developer Portal Services Cloud Services

Sensors Media DataGamer Services Notifications

.NET Framework managed code sandbox

LocationPhone

Run Time – On “Screen”

view in slide show

mode

Page 7: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Performance tuning

Input integration

H/W media and sensor integration

OS application model integration

Relaxed sandbox constraints

What is Silverlight for WP7?

Starts with Silverlight 3 plus…

Page 8: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

THE FUN STUFFShow Me Some Code!

Page 9: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

MXeXtensible

A LApplication Markup Language

XAML

XML

Declarative Markup<Grid> <TextBlock FontSize="48" Text="Hello world" /></Grid>

Page 10: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

CodeXAML

XAML maps to code

Anything in XAML can be done in code

Code

Page 11: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

DEMO - XAML + CODEThe Basics

Page 12: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Vector-Based

Importable from Photoshop or Illustrator

Shapes

Page 13: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Determines how objects are painted and outlinedSolid, Gradient, Image, Media

Brushes

Page 14: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

DEMO – SHAPES + BRUSHES

Pretty Shapes

Page 15: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

<Button x:Name="MyButton" Content="Center" Width="150" Height="50" />

Encapsulates functionality

Give it a x:Name

Same properties as in XAML

Controls

Page 16: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Can be created in XAML & Code

Tools create handler for you

public void myButton_Click(object sender, RoutedEventArgs e){ // todo: add code}

Events

Page 17: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

DEMO – CONTROLS + EVENTS

Make it Do Something

Page 18: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Apply consistent formatting

Per-page or per-application

<Style TargetType="TextBlock" x:Key="SubHeadingText"> <Setter Property="FontSize" Value="42" /> <Setter Property="Foreground" Value="Blue" /></Style>

Styling

Page 19: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

DEMO – STYLINGMake it Consistent

Page 20: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Layout

Grid | Rows & columns, very flexible

Flexible Layout system

Canvas | Fixed-position

StackPanel | “Stacks” dynamically

Page 21: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

DEMO – LAYOUTWhere Does It Go?

Page 22: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Transforms

ControlsText

Media

RotateScaleSkew

TranslateMatrix

PlaneMatrix

Apply 3D to a 2D element

Alters any element Transforms Projections

Page 23: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Animations

Animate a property value over time

Basics

Expression Blend is the best tool for designing animations

Storyboard Animation Keyframe

Page 24: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

DEMO –TRANSFORMS, ANIMATIONS

Make it Look Great

Page 25: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Databinding

Powerful Concept

Two types

Based on change notification

Property binding List binding

Page 26: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

DEMO – DATABINDINGMake it Real

Page 27: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Code Reuse

Reuse UI

User Control Custom Control

Reuse Code

Across projectsAcross

platforms (Web, Windows Phone)

Page 28: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

DEMO – CODE REUSEDon’t Reinvent The Wheel

Page 29: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

29

Call to action

Download the tools! http://silverlight.net http://developer.windowsphone.com

Start building great apps and games Be creative Go see other presentations Resources:

Forums, Blogs, Books, Podcasts, Oh My! My blog http://shawnoster.com

Charlie Kindel
Verify URLs
Page 30: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Where Next?

Building Windows Phone Applications with Silverlight, part 1 & 2

Make your application rock on Windows Phone 7!Shake, rattle & roll with accelerometer & vibrationCloud & Push notificationsLocation servicesMaximizing Silverlight Performance on Windows Phone 7 Series

Make your applications rock!

Page 31: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

Please fill out the evaluation form!

Page 32: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

It’s Question Time!

Page 33: Silverlight 101 Ahead! If you know Silverlight and are looking for  more advanced content check out :

© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.