2. Agenda
What is Silverlight?
Why Silverlight ?
Xaml
Why Xaml?
Features
Releases
Designer/Developer Tooling
Silverlight in Mobile
Silverlight Vs Flash
Conclusion
References
3. What is Silverlight ?
Web application framework
Browser plug-in
Cross-browser, Cross-platform technology
Subset of WPF
Silverlight code runs in a sandbox
4. Contd..
User interfaces are declared in XAML and the programming
logic can be written in any .NET language, IronRuby
and IronPython
Deliver media experiences and rich interactive applications for
the Web that incorporate video, animation, interactivity, and
stunning user interfaces
It reads data and updates the display, but it doesn't interrupt
the user by refreshing the whole page.
5.
6. Why Silverlight ?
Run on all popular Browsers and OS
Consistent experience irrespective of platform
Supports AJAX methodology for rich Internet applications
Streams video/audio and scales video quality from mobile
device to 720 HDTV video modes
7. Contd..
Small download 4 MB
HTML + CSS + JavaScript is too limiting
End user expectations are changing. They want richness and
interactivity
8. XAML - X Application Markup Language
XAML is at the core of Silverlight application.
XML-based language by Microsoft
No replacement for C# , Vb etc.
Create and initialise trees of .NET objects
XAML objects fire events
10. Why XAML?
Separate Presentation and Logic
Grouping and Positioning
Objects belong to parent objects.
Some attributes are referenced in relation to the
parent.
Can create complex Animations in XAML
11. Contd..
Code-Behind File
Adds functionality, including event handling
Supported languages:
C#
VB.NET
IronRuby
IronPython
Other .NET languages
12. Contd..
60+ built-in controls
– Canvas, StackPanel , Grid, and GridSplitter
– Button, CheckBox , HyperlinkButton,
RepeatButton , RadioButton , and ToggleButton
– TextBox , ListBox , and DataGrid
– TabControl , Slider, and MultiScaleImage
– Border , Calendar , DatePicker , and more!
Support styles, templates and data binding
13. Basic XAML Syntax
<TextBlock>XAML Rhymes with Camel</TextBlock>
<TextBlock Text="XAML Rhymes with Camel" />
Simple object
Object with properties
15. Features
WPF and XAML
Extensions to JavaScript
Cross-browser, cross-platform support..
Integration with existing applications
Access to the .NET Framework programming model and
to associated tools.
Networking support, support for HTTP over TCP
LINQ.
16. Releases
Silverlight 1.0
Shipped September 2007
XAML + JavaScript
Silverlight 2
Shipped October 2008
Includes an implementation of the CLR, so any .NET
language can be used to write code.
Silverlight 3
Shipped July 9th 2009
17. Silverlight 1.0
Consists of the Core Presentation Framework
Which is responsible for UI, interactivity and user input, basic UI
controls, graphics and animation, media playback, DRM support, and
DOM integration.
It is made up of the following components:
Input – handling input from devices like keyboard, mouse, etc.
UI core – managing rendering of bitmap images (including
compressed raster images like JPEG), vector graphics, text and
animations.
Media – playback of MP3, WMA Standard, WMV7,WMV8 and
WMV9/VC-1 streams.
XAML – to allow the UI layout to be created using XAML markup
language.
19. Silverlight 2
Includes a version of the .NET Framework.
Implementing the same full CLR version as .NET
Framework 3.0. - ("CoreCLR")
Execute any .NET language including C# and
VB.NET code.
20. Contd..
XAML layout markup file (.xaml file) can be augmented
by code-behind code, written in any .NET language, which
contains the programming logic.
Includes Deep Zoom technology
Dynamic Language Runtime (DLR) added
33. Silverlight in Mobile
Initial Mobile support for Windows Mobile 6 ,
Nokia S60 and S40 expected in 2010
34. Silverlight vs Flash
Languages
Flash –ActionScript
Silverlight –Multiple (JavaScript, C#, VB, Python, Ruby etc.)
Performance
Flash –No Multithreading
Silverlight –Full Multithreading based on .NET CLR
Developer Productivity
Flash –Limited
Silverlight - Excellent (Expression <-> Visual Studio / Eclipse)
Mobile
Flash –Different, subset of Flash
Silverlight –Same codebase as desktop
35. Moonlight
Moonlight is an open source implementation
of Silverlight , primarily for Linux and other Unix/X11
based operating systems.
Moonlight is being developed by the Mono Project.
Moonlight 1.0 was released on January 20 2009.
36. OS/browser IE 6 SP1 IE 6 SV1 IE 7/IE 8 Firefox SeaMonkey Safari Opera
Google
Chrome
Windows
Vista/Windo
ws 7
N/A N/A 1.0, 2.0, 3.0 1.0, 2.0, 3.0 1.0, 2.0
1.0, 2.0;
via NPAPI
Unofficially 2.0, 3.0
Windows
XP/2003/Hom
e Server
N/A 1.0, 2.0, 3.0 1.0, 2.0, 3.0 1.0, 2.0, 3.0 N/A
1.0, 2.0;
via NPAPI
Unofficially 2.0, 3.0
Windows
2000
2.0 N/A N/A
2.0
Unofficially
N/A
2.0;
via NPAPI
Planned N/A
Windows
Mobile 6
2.0 N/A N/A N/A N/A N/A N/A N/A
Mac OS
10.4/10.5
PowerPC
N/A N/A N/A 1.0 N/A 1.0 Planned N/A
Mac OS
10.4/10.5 Intel
N/A N/A N/A 1.0, 2.0 N/A 1.0, 2.0 Planned N/A
Compatibility
40. Conclusion
Microsoft Silverlight is a cross-browser, cross-platform
and cross-device plug-in for delivering the next generation
of media experiences and rich interactive applications for
the Web .
By using Expression Studio and Visual Studio, designers
and developers can collaborate more effectively using the
skills they have today to light up the Web of tomorrow.
Silverlight provides an alternative to Flash.