Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SEMINAR REPORT
Submitted by
M.SREENIVASAN
Of
BACHELOR OF TECHNOLOGY
In
COMPUTER SCIENCE AND ENGINEERING
SCHOOL OF ENGINEERING
COCHIN-682 022
JULY 2008
DIVISION OF COMPUTER SCIENCE AND
ENGINEERING
SCHOOL OF ENGINEERING
COCHIN UNIVERSITY OF SCIENCE & TECHNOLOGY,
COCHIN-682 022
Certificate
Certified that this is a bonafide record of the Seminar Entitled
“MICROSOFT SILVERLIGHT”
Done by the following Student
M. Sreenivasan
Of the VIIth semester, Computer Science and Engineering in the year 2008 in
partial fulfillment of the requirements to the award of Degree Of Bachelor Of
Technology in Computer Science and Engineering of Cochin University of Science
and Technology
Date:
ACKNOWLEDGEMENT
At the outset, I thank the Lord Almighty for the grace, strength
and hope to make my endeavor a success.
Last but not the least, I thank all others, and especially my
classmates and my family members who in one way or another helped me in
the successful completion of this work.
M.SREENIVASAN
ABSTRACT
LIST OF TABLES i
LIST OF FIGURES i
1. INTRODUCTION
1.1 OVERVIEW 1
1.2 RELEASES 1
2. SILVERLIGHT
2.1 WHAT IS SILVERLIGHT 3
2.1.1 FEATURES 4
2.1.2 RUNNING SILVERLIGHT 5
2.1.3 CREATING SILVERLIGHT 6
2.2 AS A PART OF USER CONTINNUM 6
2.3 SILVERLIGHT ARCHITECTURE 9
2.3.1 SILVERLIGHT1.0 11
2.3.2 SILVERLIGHT 2.0 16
2.4 COMPATIBILITY 21
2.5 DEVELOPMENT TOOLS 22
2.6 DEPLOYMENT AND PACKAGING 24
2.7 SCENARIOS FOR USAGE 25
3. CONCLUSION
3.1 CRITISISM 26
3.2 MOONLIGHT 26
3.3 CONCLUSION 26
4. REFERENCES 27
i
LIST OF TABLES
1. COMPATIBILITY 21
LIST OF FIGURES
ii
SilverLight
1. INTRODUCTION
1.1 OVERVIEW
1.2 RELEASES
• Input – handling input from devices like keyboard, mouse, stylus 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.
2. SILVERLIGHT
fig: 2.1 Silverlight-based application with rich graphics and user interaction
2.1.1 FEATURES
If you already use ASP.NET, you can integrate Silverlight with the server and client
capabilities of ASP.NET that you are familiar with. You can create server-based
resources in ASP.NET and use the AJAX capabilities of ASP.NET to interact with
server-based resources without interrupting the user
CONTINNUM
Now, more than ever, customers are demanding applications and
online experiences that not only meet their individual needs in terms of effectiveness
and efficiency, but also address the perception of satisfaction the user has with a
company's products or services. In most cases, the level of satisfaction will have a
network and an emotional effect, shaping perceptions of the company as a whole, and,
as an extension, the perceptions of those with whom the individual comes into touch.
Microsoft acknowledges this connection and has a made a renewed commitment to
user experience (UX) as a part of the end-to-end experience. UX is more than a pretty
UI; it is the aggregation of the interaction point of a user with an application. Our
mission is thus to enable a great user experience wherever the customer needs that: on
the Web, on devices, in Office, and in Windows.
• Windows Vista introduces easier ways to visualize and organize your files,
media, and communications. In every case of the UI, a focus on user-centric
task accomplishment and experience was put first. Other examples of focusing
on UX include the new task switcher (Alt+Tab) and Wi-Fi signal notification.
• Microsoft Office 2007 has introduced the new "Ribbon" concept to replace
traditional toolbars. A natural extension, the ribbon reduces time to find any
given feature in an Office application to about 10 seconds.
for Windows XP) that includes the Windows Presentation Foundation (WPF).
By using WPF, one can create rich, immersive, connected applications and
experiences that can take full advantage of the Windows platform, including
UI, media, offline communication, and document support. WPF uses a
superset of the same XAML that is used by Silverlight.
Browser Plug-in
Hosting parameters that affect the consistency and performance of your application
include the following:
• is Windowless Setting this parameter to false will ensure the highest frame
rate and will result in better visual display quality across various platforms.
Windowed display is the best mode of operation for the plug-in.
• Background If windowless mode is required, use an opaque background
instead of a translucent or fully transparent background for better
performance. In particular, you should set the background to '#FF000000',
where the first component is FF. A transparent background affects
performance because the browser has to re-render the area under the control
with each frame. This additional rendering, combined with the cost of
blending images, can result in significantly slower performance on some
operating systems and browsers.
Element Tree
• You can use the JavaScript API to change child relationships and to set
properties on the content.
• You can use the animation system to change the value of properties over time.
Rendering Engine
o Brush transforms.
o Text and graphics remain sharp when scaled. Image data will be
resampled, and quality will vary based on the resolution of the source
images.
• Clipping:
o Applied to a group of arbitrary drawing primitives, which could also
include other nested clips, opacity effects, or opacity masks.
• Opacity and opacity mask support:
o Applied to a group of arbitrary drawing primitives, including other
nested opacities or clips.
Animation System
Image Cache
For best results, the resolution of the image being downloaded should
be close to the display size of the image. If the image resolution is significantly larger
than the display size, bilinear filtering aliasing display artifacts can occur. If the image
resolution is significantly smaller than the display size, the image will appear blurry.
Text Engine
The text engine will flow text strings within a TextBlock by applying
simple formatting and explicitly positioning glyphs for precise fixed-format display. It
will either use a specified font from the system (which is limited to a set that is
available on all platforms) or use a specified Uniform Resource Identifier (URI),
which can refer to a TrueType font.
Glyph Cache
The glyph cache is used by the text engine to produce glyphs for
rendering from font files. The glyph is optimized for readability at a particular target
resolution, so an initial cost is incurred on the first frame on which text is drawn or
when the scale of text changes. After this initial cost, scrolling or translation of text is
significantly cheaper.
Media Pipeline
element in the new full-screen content to ensure that the transition is seamless and
does not require rebuffering.
Decoders
Silverlight 1.0 supports PNG and JPG files for imaging, Windows
Media Video (WMV) files for video, and Windows Media Audio (WMA) and MP3
files for audio.
version as .NET Framework 3.0; so it can execute programs written in any .NET
language. Unlike the CLR included with .NET Framework, multiple instances of the
CoreCLR included in Silverlight can be hosted in one process. With this, the XAML
layout markup file (.xaml file) can be augmented by code-behind code, written in any
.NET language, which contains the programming logic. It can be used to
programmatically manipulate both the Silverlight application and the HTML page
which hosts the Silverlight control. 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.
Silverlight also includes classes for data access over XML-based Web
services, REST, WCF Services and ADO.NET Data Services. The networking
support in Silverlight can be used by Silverlight applications to communicate using
HTTP, or at the lower socket level. Cross-domain communication is supported.
Silverlight uses an XML-based configuration file to control the cross-domain resource
access policy, both for HTTP connections as well as socket connections. It can be
used by site administrators to control which resources a Silverlight application that
did not originate in the domain of the site can access. In addition, Silverlight also
supports the Adobe Flash cross domain policy file format.[Silverlight sockets can only
initiate a connection; they cannot listen for connections.
2.4. COMPATIBILITY
The following table presents an availability and compatibility matrix of
Silverlight versions for various operating systems and web browsers.
Table2.1 Compatibility
• On Linux^, the functionality will be made available via the compatible third-
party Moonlight runtime.[Moonlight will be available for the major Linux
distributions, with support for Firefox, Konqueror, and Opera browsers.
Select OK and a new project will be created. This project will contain a
default HTML page, some JavaScript code-behind this page, a XAML document, a
JavaScript code behind for the XAML document and Silverlight.js.
Content for a Web page that contains Silverlight elements can be created by using
the following tactics:
Web pages that require Silverlight can detect if the Silverlight plug-in
is installed, and can direct users to download it and install it (either through a redirect
or through an object tag). The Silverlight SDK has documentation on that.
• Web media— Branded playback with events, video and marketing mix,
dynamic videos with ads, audio playback, and so forth
• Rich islands on a page (mini apps)— Casual games and gadgets
3. CONCLUSIONS
3.1 CRITICISM
Silverlight has been criticized for keeping Linux out of their official
offering. Even though Microsoft is officially collaborating on the Moonlight project,
Bruce Chizen, former CEO of Adobe, and maker of direct competitor Flash, has
questioned "the commitment of Microsoft to keep the Silverlight platform compatible
with other OS than Windows". His concerns are based on "examples from history"
where Microsoft has launched products with promises of ongoing cross-platform
compatibility that no longer apply, such as Internet Explorer for UNIX, the Microsoft
Java Virtual Machine, OS/2, and Windows Media Player.
3.2 MOONLIGHT
3.3 CONCLUSIONS
4. REFERENCES
http://www.microsoft.com/SILVERLIGHT/
http://silverlight.net/
http://www.nsaneblog.com/software/260/microsoft-silverlight-review/
http://en.wikipedia.org/wiki/Silverlight
http://en.wikipedia.org/wiki/Moonlight
http://msdn.microsoft.com/enus/library/bb404713(VS.95).aspx
http://www.wynapse.com/Silverlight.aspx