NH .Net Code Camp 2010 - An Introduction to Silverlight Development

15
John Garland Senior Consultant Burntsand Consulting An Introduction to Silverlight Development http://blog.dotnetgator.com 1

Transcript of NH .Net Code Camp 2010 - An Introduction to Silverlight Development

Page 1: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

1http://blog.dotnetgator.com

John GarlandSenior ConsultantBurntsand Consulting

An Introduction to Silverlight Development

Page 2: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

About Burntsand

2

Producing tangible results through

disciplined execution• Leading systems integration

firm founded in January 1996

• More than 350 blue chip clients

• 4 North American locations: Boston, San Jose, Houston, Indianapolis

• Microsoft Gold Certified partner with 4 competencies

• Additional partnerships with EMC Documentum and BMC Software

• Custom Development Solutions• Smart Client Development• Web Development

• Information Worker Solutions• Web & Portal Publishing• Document & Records

Management

• Data Management Solutions• Business Intelligence &

Reporting Solutions

• Business Process and Integration Solutions

• CRM – ReMS

http://blog.dotnetgator.com

Page 3: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

3http://blog.dotnetgator.com

• A Little Context

• Basics of Silverlight Development• Getting Started• XAML• Multimedia• Basic Data Access• Out-of-browser Silverlight• Interaction with the Browser

• Where to go to from here…

What You Can Expect to Take Away

Page 4: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

4

Pros Cons• Requires installation of a separate

runtime

• Not included with any “classic” .Net runtime, OS, or browser

• Not as widely adopted as other RIA technologies

• Currently 59% adoption** vs. 96% for Flash

• Limited to HTTP binding for WCF Service interactions

• AJAX, especially with tools like jQuery and the related extensions also offer RIA experiences

• HTML 5 (***)

• Linux client support limited to what is available in Moonlight

• Strongly-typed, compiled development for web applications

• Large transfer of skillset from .Net-based client applications to web applications (especially WPF)

• (Some) Code reuse with .Net applications

• Rich interactive user interfaces

• Can be used for standalone / occasionally connected applications

• Access to rich development tools and communities

• Hosting by multiple server platforms

• Leverage skills and/or code for upcoming Windows Phone 7 development

Why Silverlight?

http://blog.dotnetgator.com

Silverlight is a technology for creating cross-platform .Net applications for the browser*

Page 5: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

5

SL

Date Version Comments

1 September 5, 2007November 20, 2007January 15, 2008July 23, 2008

1.0.208161.0.211151.0.301091.0.30715

RTWSR1SR2SR3

2 October 14, 1008February 18, 2009

2.0.310052.0.40115

RTWGDR1

3 July 9, 2009July 28, 2009September 1, 2009January 19, 2010

3.0.406243.0.407233.0.408183.0.5016

RTWGDR1GDR2GDR3

4 April 2010March 15, 2010 4.0.50303

RTWRC

How Did We Get Here?

http://blog.dotnetgator.com

Page 6: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

6

Tools:

Visual Studio 2010

Expression Blend 4 RC

Silverlight 4 Tools for Visual Studio 2010 (VS Support, SDK, & RIA Services)

Silverlight Toolkit

Other:

WCF RIA Services Toolkit

All-In-One:

http://www.silverlight.net/getstarted

Getting Started with Silverlight

http://blog.dotnetgator.com

Page 7: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

7http://blog.dotnetgator.com

• A Basic Project

• Hosting Silverlight Content

• The Nature of Silverlight

• XAP = ZIP

Hello Code Camp

DEMO

=

Page 8: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

8

Introducing XAML

http://blog.dotnetgator.com

DEMO

private TextBlock textBlock;public void DoSomething(){ Grid grid = new Grid(); textBlock = new TextBlock { Text = "Hello World" }; grid.Children.Add(textBlock); this.Content = grid;}

<Grid> <Grid.Children> <TextBlock x:Name ="textBlock" Text="Hello World"/> </Grid.Children></Grid>

• Namespaces• Containers • Binding , Data Context, & Value Converters• Controls & Events• Modal Dialogs

Page 9: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

9

• MediaElement & VideoBrush

• WebCam

• Resources & Styles

• Templates

Multimedia

http://blog.dotnetgator.com

DEMO

Page 10: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

10http://blog.dotnetgator.com

Silverlight is more than a web plugin

• Out-of-browser

• HTML Bridge

• Windows Phone 7

Beyond the Plugin

Page 11: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

11

• Local Data Storage is available in Isolated Storage only

• Data can be retrieved from the web• Web service calls must use Basic HTTP (WS-HTTP is not supported)

• Network calls are asynchronous

Data Access

http://blog.dotnetgator.com

Page 12: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

12

Going Further

http://blog.dotnetgator.com

Pro Silverlight 3 in C# (Matthew MacDonald)Silverlight Recipes (Rob Cameron)WPF Control Development (Podila)B

OO

KS

http://dotnet.uservoice.com/ - Suggestionshttp://www.microsoft.com/design/toolbox - Free Online Training

OTH

ER

Silverlight.NetSilverlight ToolkitBing Maps APIWindows Phone 7 Developer SiteO

NLI

NE Blog – Brad Abrams

Blog – Andy BeaulieuBlog – Christian SchormannBlog – VS Tip of the Day

Silverlight TVSilverlight Training CourseMIX VideosMSDevPerspectives on Flash & SilverlightV

IDEO

S

Page 13: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

13

Other Sessions

http://blog.dotnetgator.com

Time Topic Speaker

9:45 F# and Silverlight Talbott Crowell

11:00 An Introduction to Silverlight 4 Development

John Garland

1:00 Building Business Applications with Silverlight

John Garland

2:15 Seeing in XAML John Bowen

3:30 An Introduction to Windows Phone 7 Development with Silverlight

John Garland

Page 14: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

14

Please Complete Your Evaluation Forms

http://blog.dotnetgator.com

Page 15: NH .Net Code Camp 2010 - An Introduction to Silverlight Development

15

Questions?

http://blog.dotnetgator.com