an introduction to silverlight l.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
An Introduction To Silverlight PowerPoint Presentation
Download Presentation
An Introduction To Silverlight

Loading in 2 Seconds...

play fullscreen
1 / 31

An Introduction To Silverlight - PowerPoint PPT Presentation


  • 115 Views
  • Uploaded on

An Introduction To Silverlight. Gergely Orosz http://GregDoesIT.com @gergelyorosz. In this presentation. What SL is capable of How it is different Learning curve overview Why use SL Non-traditional way. What is Silverlight?. Rich Internet Application (RIA) platform

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'An Introduction To Silverlight' - hamlin


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
an introduction to silverlight
An Introduction To Silverlight

Gergely Orosz

http://GregDoesIT.com

@gergelyorosz

in this presentation
In this presentation

What SL is capable of

How it is different

Learning curve overview

Why use SL

Non-traditional way

what is silverlight
What is Silverlight?

Rich Internet Application (RIA) platform

Capabilities are similar to

Flash

Java FX

Web-based subset of WPF

flash vs silverlight6
Flash vs Silverlight

Features: almost identical

Development environments

Streaming

Mobile: ?

slide7
WPF

Descendant of Windows Forms

Built on .NET 3.5

XAML: descriptive markup language

wpf silverlight features
WPF / Silverlight features

Vector graphics & bitmap effects

Data binding & UI update

Animations

Rich content: videos, images, sounds

Styling, templates

silverlight lightweight wpf
Silverlight: lightweight WPF

CLR within Browser

Limited CLR:

Not all libraries

Local filesystem limited

Networking limited

slide10
XAML

Separate UI and logic

XML markup, clean syntax

XAML and code behind files

Does not support generics

ui basics
UI Basics

Layout

Grid, Canvas, StackPanel

Controls

Button, HyperLinkButton, ComboBox etc

Text, images

TextBlock, Image, MediaElement

Brushes

Solid, linear, radial, image, video

User Controls

ui basics example
UI Basics: Example

VideoBrush Example

Use MSDN/references to look up UI elements

styling and templating
Styling and templating

Defining styles:

TargetType

Setters that are valid on the target

Templates

Customize controls

Uses ControlTemplate class

Easy to define in XAML

dependency properties
Dependency Properties

Extend CLR properties

Property changed notification

Data Binding

Animating

Default value and ClearValue

Has to inherit DependencyObject

dependency properties example
Dependency Properties: example

Registering, default value, Property Changed

Animating

Data Binding

attached properties
Attached Properties

Global property that can be set on any object element

Static Dps

Used by the owner, defined on the child

E.g. Canvas.Left, Grid.Column

slide20
MVVM

How to effectively build large applications in WPF

Lots of UI markup, lots of data binding

Variation of MVC

slide21
MVVM

Model

BL, UI independent

View

Visual elements + input processing

Data binding

View and model can be bound directly

Usually direct binding is not possible

slide22
MVVM

ViewModel

“Model of a View”

Abstraction of the view: contains state and behaviour

Data binder/converter:

Model information → View information

View commands → Model

mvvm in silverlight
MVVM in Silverlight

Worth using on larger projects

Frameworks

MEF

Official

Prism

Non-official, but MS

summary
Summary

Similar to WPF

XAML

Styling & templating

DPs

Attached properties

MVVM for larger applications

effort learning sl
Effort learning SL

Project structure: small

UI: significant

Media: moderate

Data binding: moderate

effort learning sl27
Effort learning SL

Network: moderate

Events: moderate

Other: moderate - significant

Dependency Properties, Attached Properties

MVVM

Navigation Framework

Out of Browser applications

why it s worth it
Why It's Worth It

Things you couldn't do before!

Good looking controls & pages

Animation

Video & vector graphics

why it s worth it29
Why It's Worth It

Silverlight client for Facebook

Silverlight Toolkit (with source)

http://www.jumpman23mosaic.com

http://silverlight.net/showcase/

http://nokola.com/ (with source)

suggested learning curve
Suggested Learning Curve

C# / VB experience

Web

http://silverlight.net/getstarted/

MSDN: Getting Started with Silverlight

Books

WPF