You are on page 1of 20

www.kalptaru.in © Kalptaru Infotech Ltd.

Contents
What is silverlight ?
Versions of Silverlight
Silverlight Supports
Moonlight
Silverlight Programming Model
Overview of WPF
Overview of XML
Silverlight Tooling
www.kalptaru.in © Kalptaru Infotech Ltd.
Continue…
Silverlight Feature Summary
Competing technologies
Silverlight Positives

www.kalptaru.in © Kalptaru Infotech Ltd.


What is Silverlight ?
Microsoft Silverlight is a cross-browser,
cross-platform implementation of .NET for
building and delivering the next generation
of media experiences & rich interactive
applications for the Web.

www.kalptaru.in © Kalptaru Infotech Ltd.


Versions of Silverlight
v 1.0

RTM in Sept. 2007
 Code behind – JavaScript only
v 1.1 / 2

.NET based
 SL 1.1 Alpha introduced in Spring 2007.
 SL 2 Beta 1 released in March 2008

Code behind - .NET languages C#, etc.
 Partial .NET class library
www.kalptaru.in © Kalptaru Infotech Ltd.
Silverlight Supports

www.kalptaru.in © Kalptaru Infotech Ltd.


Moonlight
Moonlight is an open source implementation
of Silverlight primarily for Linux and other
Unix/X11 based operating systems.

Goals :
To run Silverlight applications on Linux.
To provide a Linux SDK to build Silverlight
applications.
Silverlight Programming Model
Silverlight 2.0 includes same Common
Language Runtime as in .Net Framework
3.0.

For creating layouts it uses XAML layout


markup file (.xaml file). for code behind we
can use any .Net language.

www.kalptaru.in © Kalptaru Infotech Ltd.


Continue…
Silverlight has a subset of WPF UI-
programming model, including support for
shapes, documents, media and animation
objects of WPF.
The XAML markup as well as the code, is
compiled into .NET assemblies which are
then compressed using ZIP and stored in
a .xap file.

www.kalptaru.in © Kalptaru Infotech Ltd.


WPF
The Windows Presentation Foundation
(or WPF), formerly code-named Avalon,
is a graphical subsystem in .NET
Framework 3.0, which uses a markup
language, known as XAML for rich
user interface development.
It has support for many application
services like user interface, 2D and 3D
drawing, fixed and adaptive documents,
advanced typography, vector graphics,
raster graphics, animation, data binding,
audio and video.
www.kalptaru.in © Kalptaru Infotech Ltd.
Declarative Development - XAML
eXtensible Application Markup Language
Code XAML

Calculator c = new <Calculator>


Calculator(); <Operations>
Multiply m = new Multiply(); <Multiply P1=“10” P2=“20”/
m.P1 = 10; >
m.P2 = 20; </Operations>
c.Operations.Add(m) </Calculator>

XAML usage

Compiled to produce executable code
 Dynamically loaded (parsed or pre-parsed)
www.kalptaru.in © Kalptaru Infotech Ltd.
Silverlight Tools
Expression Blend:
 GUI builder
 Graphic designers

Visual Studio 2008:


 Includes a more limited GUI builder
 Programmers

www.kalptaru.in © Kalptaru Infotech Ltd.


SL2 Feature Summary:
GUI system features:

XAML, etc.
Controls:
 What controls come “in the box”?
Data:
 Features related to database-type apps
Communications:
 Web services , WCF Services

www.kalptaru.in © Kalptaru Infotech Ltd.


GUI System Features
WPF subset
Vector based vs. pixel based
 Scalable – Looks good at multiple resolutions
XAML

Declarative
 Designers and programmers work in parallel
Rich customization is easier

“Lookless” controls
 Styles and templating

www.kalptaru.in © Kalptaru Infotech Ltd.


SL2 Features: Controls
Controls:

Extensible control base classes
 Common controls:
Textbox, Checkbox, Radiobutton, etc
TabControl, Slider, ScrollViewer, ProgressBar, etc
 Layout controls:
Grid, StackPanel
 Data controls:
DataGrid, etc

www.kalptaru.in © Kalptaru Infotech Ltd.


SL2 Features: Data
Data:

2-way data binding
 More LINQ ( Language Integrated Query)
support:
LINQ to XML
LINQ to Objects

www.kalptaru.in © Kalptaru Infotech Ltd.


Competing technologies
Desktop based “smart clients”
 WPF on high end
3D, Hardware acceleration
 WinForms: (Mature, proven)
Web-based:

ASP.NET - HTML + CSS
 ASP.NET - HTML + CSS + AJAX
 Adobe Flash / Flex

www.kalptaru.in © Kalptaru Infotech Ltd.


Silverlight - Positives
Lightweight at 4-6 MB, quick download
.NET based
 Write in C# or VB.NET
 Use familiar class libraries
Rich state-of-the-art GUI

Vector based
 All types of content handled uniformly

www.kalptaru.in © Kalptaru Infotech Ltd.


www.kalptaru.in © Kalptaru Infotech Ltd.
Q&A

www.kalptaru.in © Kalptaru Infotech Ltd.

You might also like