Microsoft®
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Web desktop Easy to develop and deploy, but limited features and end user experience  Rich user experience, often connecte...
Design Develop Deploy
Flexible tools / programming / media Compelling UX on all app categories Connected to data, servers, services Media & RIA ...
Who uses Silverlight? Content Providers Engage visitors with highest quality interactive web sites, video and game experie...
Silverlight Momentum By the Numbers 26  months  since launch Silverlight first shipped in 2007…
Silverlight Momentum By the Numbers 26  months  since launch 500m+ downloads 500m+
Silverlight Momentum By the Numbers Source: Microsoft Developer Tracker 2008 Report 26  months  since launch 500m+ downloa...
Silverlight Momentum By the Numbers 26  months  since launch 500m+ downloads 500,000+ Developers & Designers 350+  partner...
Silverlight Momentum By the Numbers 26  months  since launch 500m+ downloads 500,000+ Developers & Designers 350+  partner...
Silverlight Momentum By the Numbers www.silverlight.net/showcase 26  months  since launch 500m+ downloads 500,000+ Develop...
 
 
 
 
 
 
 
 
 
 
 
Why Silverlight?
Why Silverlight? Low Cost, High Quality Media Compelling, Cross-Platform User Experiences Flexible Programming Model with ...
Why Silverlight? Compelling, Cross-Platform User Experiences Flexible Programming Model with Collaboration Tools Low Cost,...
Why Silverlight? Flexible Programming Model with Collaboration Tools Compelling, Cross-Platform User Experiences Low Cost,...
Why Silverlight? Connected to Data, Servers, and Services Compelling, Cross-Platform User Experiences Flexible Programming...
What Can Silverlight Brings To Business Application? <ul><li>The deployment is  easy  – applications are delivered over th...
SL versus WPF <ul><li>Shared features: </li></ul><ul><li>Both use XAML for defining user interfaces (with Silverlight esse...
SL versus WPF <ul><li>Pros: </li></ul><ul><li>WPF has minimal restrictions, and it requires no sandbox (unless deployed vi...
SL versus WPF <ul><li>Cons: </li></ul><ul><li>WPF requires the full .NET Framework to be installed on the machine. </li></...
SL versus WinForms <ul><li>Shared features: </li></ul><ul><li>Both can be downloaded via a browser (although Windows Forms...
SL versus WinForms <ul><li>Pros: </li></ul><ul><li>Windows Forms has minimal restrictions and no sandbox. </li></ul><ul><l...
SL versus WinForms <ul><li>Cons: </li></ul><ul><li>requires the full .NET Framework to be installed on the machine. </li><...
SL versus WinForms <ul><li>Create  unique  each  flexible  UI – support for data binding, vector graphics, animations, etc...
SL versus HTML Based Applications <ul><li>Renders  exactly the same way  in each browser or operating system </li></ul><ul...
SL versus ASP.NET <ul><li>Shared features: </li></ul><ul><li>Both ASP.NET and Silverlight are available via a web browser ...
SL versus ASP.NET <ul><li>Pros: </li></ul><ul><li>runs on almost all Internet-connected devices. </li></ul><ul><li>does no...
SL versus ASP.NET <ul><li>Cons: </li></ul><ul><li>requires the full .NET Framework to be installed on a Windows server run...
SL versus ASP.NET <ul><li>Cons: </li></ul><ul><li>Data binding capabilities aren’t as rich. </li></ul><ul><li>Not as rich ...
SL versus Adobe Flash/Flex <ul><li>Similar features: </li></ul><ul><li>Both are rich Internet application platforms deploy...
SL versus Adobe Flash/Flex <ul><li>Pros: </li></ul><ul><li>The Flash runtime is almost ubiquitous, installed on almost all...
SL versus Adobe Flash/Flex <ul><li>Cons: </li></ul><ul><li>Code must be written using ActionScript, a JavaScript derivativ...
SL versus Adobe Flash/Flex <ul><li>Cons: </li></ul><ul><li>It requires an additional download to run applications outside ...
Disadvantages of SL <ul><li>Over HTML-based applications </li></ul><ul><li>Reach of users in HTML </li></ul><ul><li>Plug-i...
Considerations in using SL <ul><li>Determine the  current   and  potential  future requirements of your application. </li>...
Support for Higher Quality Video and Audio Media Webcam and Microphone Native Multicast Output Protection Online and Offli...
Empowering Rich Experiences Rich Experiences Developer Tools Beyond the Browser Business Applications Rich Experiences Med...
Business Applications Business Applications Developer Tools Beyond the Browser Business Applications Rich Experiences Medi...
Silverlight 4  New Capabilities : Beyond the Browser Beyond the Browser Beyond the Browser Developer Tools Beyond the Brow...
Developer Tools World Class tooling for development and design Developer Tools Beyond the Browser Business Applications Ri...
Required Tools <ul><li>Visual Studio 2008/2010 </li></ul><ul><li>Expression Blend 4 and SketchFlow </li></ul><ul><li>Silve...
Exercise #1: My First Silverlight Application
Exercise #2: Creating an OOB application
Exercise #3: Adding a Notification Window
Exercise #4: Hosting an HTML content in Silverlight
Exercise #5: Using ComInterop With Office
Exercise #6: Using BingMap Control
Exercise #7: Publishing Pivots
Exercise #8: Working with Charts
Exercise #8: Printing in Silverlight
Exercise #9: Using Full Screen Mode
Exercise #10: Using Animations, Behaviors, etc.
Exercise #11: My First Silverlight Business Application
Exercise #12: Validation, Binding, DataForm and DataGrid
Abram John A. Limpin http://abramlimpin.com
 
 
 
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be...
Upcoming SlideShare
Loading in …5
×

Uncovering Windows - Silverlight Seminar

1,587 views

Published on

My presentation slide during DLS-CSB AIM's Uncovering Windows - Silverlight Seminar last February 19, 2011.

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,587
On SlideShare
0
From Embeds
0
Number of Embeds
32
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • This guys use to control the world in Advertising. They worried about…
  • They were fat and happy…
  • … and a little worried.
  • They knew there were big problems with what they did.
  • … the other shoe dropped.
  • … the other shoe dropped.
  • It was the Web again.
  • Where this mattered more than a 30 second commercial.
  • And knowing what REALLY mattered on this page became really important.
  • Along the way a lot of new folks came along that were smart and ‘got’ it.
  • They could measure every thing they do.
  • We want to talk.
  • We want to share. We want to create.
  • This doesn’t cut it anymore.
  • Neither does this…
  • Or even this.
  • Silverlight is a powerful development platform for creating rich media applications and business applications for the Web, desktop, and mobile devices. Silverlight is a free plug-in powered by the .NET framework that is compatible across multiple browsers, devices and operating systems to bring a new level of interactivity wherever the Web works. With support for advanced data integration, multithreading, HD video using IIS Smooth Streaming, and built in content protection, Silverlight enables online and offline applications for a broad range of business and consumer scenarios.
  • Microsoft then started working on a project called WPF Everywhere (WPF/E), which was essentially designed to be a web-deployed subset of WPF that had its own runtime and ran within a browser plugin. It used XAML to define the user interface and required you to write code in JavaScript. It had little in the way of controls, and was predominantly focused on media-type applications (video, animations, and vector graphics). This became Silverlight 1. With Silverlight 2, developers really started to become interested in Silverlight. It now had the CLR, a subset of the .NET Framework, and a decent set of standard controls, enabling developers to start writing rich Internet applications without needing to learn a new language. Silverlight 3 began to focus its use on developing business applications. It included richer data binding support, the DataForm control, validation controls, and the ability to run Silverlight applications OOB. In addition, although it was in beta, Microsoft simultaneously released a new framework called RIA Services, which provided a powerful and structured means for Silverlight applications to communicate with servers and pass data between them—making business applications easier to develop in Silverlight.
  • Silverlight has been downloaded and installed on more than 500 million consumer PCs since its launch in 2007. Over 45% of internet connected devices now have the Silverlight plug-in installed. (Timestamp November 2009 PDC) Once installed, Silverlight automatically upgrades to the latest version.
  • While sites using other, non-Microsoft technologies had a viewing experience that lasted an average of 3 minutes per user, on the NBCOlympics.com site, the average viewing time was over 27 minutes per user
  • NBCOLYMPICS.COM ROLLS: NBCOlympics.com followed up its record day on 8/8/08 with another enormous day of traffic.  On Saturday (traditionally the lowest trafficked day of the week), the site garnered 62.7 million page views an increase of 475 percent from the opening day of competition of the Athens Games in 2006 (10.9 million).    Through two days NBCOlympics.com has totaled 132.6 million page views compared to 17.9 million page views for the first two days of the Athens Games an increase of 641 percent.   NBCOlympics.com registered 3.1 million video streams yesterday. By comparison, in Athens, the first day of competition received 115,014 video streams.   4.83 million unique users logged onto NBCOlympics.com yesterday an increase from the 4.21 million for 8/8/08 and nearly six times the unique users from the first day of competition in Athens (816,609 million).   NBC Universal, broadcasting its record 11th Olympics and surpassing ABC for the most Olympics broadcast by any network, will present an unprecedented 3,600 hours of Beijing Olympic Games coverage, the most ambitious single media project in history featuring the most live coverage (nearly 2,900 live hours in total), across the most platforms, of any Summer Olympics in history.
  • NBCOLYMPICS.COM ROLLS: NBCOlympics.com followed up its record day on 8/8/08 with another enormous day of traffic.  On Saturday (traditionally the lowest trafficked day of the week), the site garnered 62.7 million page views an increase of 475 percent from the opening day of competition of the Athens Games in 2006 (10.9 million).    Through two days NBCOlympics.com has totaled 132.6 million page views compared to 17.9 million page views for the first two days of the Athens Games an increase of 641 percent.   NBCOlympics.com registered 3.1 million video streams yesterday. By comparison, in Athens, the first day of competition received 115,014 video streams.   4.83 million unique users logged onto NBCOlympics.com yesterday an increase from the 4.21 million for 8/8/08 and nearly six times the unique users from the first day of competition in Athens (816,609 million).   NBC Universal, broadcasting its record 11th Olympics and surpassing ABC for the most Olympics broadcast by any network, will present an unprecedented 3,600 hours of Beijing Olympic Games coverage, the most ambitious single media project in history featuring the most live coverage (nearly 2,900 live hours in total), across the most platforms, of any Summer Olympics in history.
  • NBCOLYMPICS.COM ROLLS: NBCOlympics.com followed up its record day on 8/8/08 with another enormous day of traffic.  On Saturday (traditionally the lowest trafficked day of the week), the site garnered 62.7 million page views an increase of 475 percent from the opening day of competition of the Athens Games in 2006 (10.9 million).    Through two days NBCOlympics.com has totaled 132.6 million page views compared to 17.9 million page views for the first two days of the Athens Games an increase of 641 percent.   NBCOlympics.com registered 3.1 million video streams yesterday. By comparison, in Athens, the first day of competition received 115,014 video streams.   4.83 million unique users logged onto NBCOlympics.com yesterday an increase from the 4.21 million for 8/8/08 and nearly six times the unique users from the first day of competition in Athens (816,609 million).   NBC Universal, broadcasting its record 11th Olympics and surpassing ABC for the most Olympics broadcast by any network, will present an unprecedented 3,600 hours of Beijing Olympic Games coverage, the most ambitious single media project in history featuring the most live coverage (nearly 2,900 live hours in total), across the most platforms, of any Summer Olympics in history.
  • NBCOLYMPICS.COM ROLLS: NBCOlympics.com followed up its record day on 8/8/08 with another enormous day of traffic.  On Saturday (traditionally the lowest trafficked day of the week), the site garnered 62.7 million page views an increase of 475 percent from the opening day of competition of the Athens Games in 2006 (10.9 million).    Through two days NBCOlympics.com has totaled 132.6 million page views compared to 17.9 million page views for the first two days of the Athens Games an increase of 641 percent.   NBCOlympics.com registered 3.1 million video streams yesterday. By comparison, in Athens, the first day of competition received 115,014 video streams.   4.83 million unique users logged onto NBCOlympics.com yesterday an increase from the 4.21 million for 8/8/08 and nearly six times the unique users from the first day of competition in Athens (816,609 million).   NBC Universal, broadcasting its record 11th Olympics and surpassing ABC for the most Olympics broadcast by any network, will present an unprecedented 3,600 hours of Beijing Olympic Games coverage, the most ambitious single media project in history featuring the most live coverage (nearly 2,900 live hours in total), across the most platforms, of any Summer Olympics in history.
  • NBCOLYMPICS.COM ROLLS: NBCOlympics.com followed up its record day on 8/8/08 with another enormous day of traffic.  On Saturday (traditionally the lowest trafficked day of the week), the site garnered 62.7 million page views an increase of 475 percent from the opening day of competition of the Athens Games in 2006 (10.9 million).    Through two days NBCOlympics.com has totaled 132.6 million page views compared to 17.9 million page views for the first two days of the Athens Games an increase of 641 percent.   NBCOlympics.com registered 3.1 million video streams yesterday. By comparison, in Athens, the first day of competition received 115,014 video streams.   4.83 million unique users logged onto NBCOlympics.com yesterday an increase from the 4.21 million for 8/8/08 and nearly six times the unique users from the first day of competition in Athens (816,609 million).   NBC Universal, broadcasting its record 11th Olympics and surpassing ABC for the most Olympics broadcast by any network, will present an unprecedented 3,600 hours of Beijing Olympic Games coverage, the most ambitious single media project in history featuring the most live coverage (nearly 2,900 live hours in total), across the most platforms, of any Summer Olympics in history.
  • NBCOLYMPICS.COM ROLLS: NBCOlympics.com followed up its record day on 8/8/08 with another enormous day of traffic.  On Saturday (traditionally the lowest trafficked day of the week), the site garnered 62.7 million page views an increase of 475 percent from the opening day of competition of the Athens Games in 2006 (10.9 million).    Through two days NBCOlympics.com has totaled 132.6 million page views compared to 17.9 million page views for the first two days of the Athens Games an increase of 641 percent.   NBCOlympics.com registered 3.1 million video streams yesterday. By comparison, in Athens, the first day of competition received 115,014 video streams.   4.83 million unique users logged onto NBCOlympics.com yesterday an increase from the 4.21 million for 8/8/08 and nearly six times the unique users from the first day of competition in Athens (816,609 million).   NBC Universal, broadcasting its record 11th Olympics and surpassing ABC for the most Olympics broadcast by any network, will present an unprecedented 3,600 hours of Beijing Olympic Games coverage, the most ambitious single media project in history featuring the most live coverage (nearly 2,900 live hours in total), across the most platforms, of any Summer Olympics in history.
  • NBCOLYMPICS.COM ROLLS: NBCOlympics.com followed up its record day on 8/8/08 with another enormous day of traffic.  On Saturday (traditionally the lowest trafficked day of the week), the site garnered 62.7 million page views an increase of 475 percent from the opening day of competition of the Athens Games in 2006 (10.9 million).    Through two days NBCOlympics.com has totaled 132.6 million page views compared to 17.9 million page views for the first two days of the Athens Games an increase of 641 percent.   NBCOlympics.com registered 3.1 million video streams yesterday. By comparison, in Athens, the first day of competition received 115,014 video streams.   4.83 million unique users logged onto NBCOlympics.com yesterday an increase from the 4.21 million for 8/8/08 and nearly six times the unique users from the first day of competition in Athens (816,609 million).   NBC Universal, broadcasting its record 11th Olympics and surpassing ABC for the most Olympics broadcast by any network, will present an unprecedented 3,600 hours of Beijing Olympic Games coverage, the most ambitious single media project in history featuring the most live coverage (nearly 2,900 live hours in total), across the most platforms, of any Summer Olympics in history.
  • • Silverlight’s use of XAML to define user interfaces enables you to create unique and flexible user interfaces that have extensive support for data binding, vector graphics, and animations. • RIA Services makes designing applications that communicate with a server clean and easy. • You will be able to share code with Windows Phone 7 and WPF applications. • Users can be set up with both the Silverlight runtime and your application with ease in a matter of minutes.
  • • You are no doubt used to having your applications render differently between browsers and operating systems. The big advantage of an RIA like Silverlight is that it renders in exactly the same way in each browser and operating system. This saves a lot of time testing and solving cross-browser issues. • Silverlight applications are richer than HTML applications and faster to develop. • Since Silverlight is a rich client, users don’t have to deal with constant postbacks to the server, and the applications feel more responsive to the user. • With the CLR and a subset of the .NET Framework running on the client, you don’t need to write in JavaScript, and you can reuse code from other projects in your Silverlight application. • Applications can be run offline. • Applications can be detached and run like a standard application.
  • In comparison to HTML-based applications, a big issue is Silverlight’s reach. HTML-based applications can be run almost everywhere. Desktop PCs (including Linux) and Internet-capable mobile devices all display HTML (although a little differently at times), meaning that the reach of these applications is almost 100 percent. For machines that can run Silverlight (Windows, Macintosh, and to an extent Linux), the user is required to install a plug-in, which isn’t always possible on locked-down machines in corporate settings (without getting the IT department involved). In comparison to rich desktop applications, Silverlight applications have restricted functionality and features. Only a subset of the .NET Framework is available to Silverlight applications (although it is a fairly reasonable subset), and the capabilities and features of the controls are somewhat limited too, so you will find that some things tend to be more difficult (or impossible) to do in Silverlight than in the desktop counterpart. Silverlight is also not designed for integrating with other applications, the underlying operating system, or hardware devices. Silverlight applications are designed to be sandboxed, and although the elevated trust and COM features in Silverlight 4 enable you to get around many of these limitations, you do need to run the applications outside of the browser (with elevated trust) in order for those workarounds to be possible.
  • These are the primary considerations you will have to take into account before choosing Silverlight as a platform. Determine the current and potential future requirements of your application, identify any features that conflict with Silverlight’s limitations, and then decide whether Silverlight is really the best suited platform for your needs.
  • Silverlight Spy (and .NET Reflector) This is not a mandatory tool to obtain, but it’s certainly recommended, as it is extremely handy when debugging your Silverlight application. Silverlight Spy, created by Koen Zwikstra of First Floor Software, allows you to inspect the internals of a Silverlight application (including its file structure, XAML visual tree, and styles), monitor its memory and processor usage, and monitor its network connector (among many other features). It also integrates with .NET Reflector (a free tool from Red Gate Software) to decompile the assemblies within the XAP file and view their code. From a debugging perspective it’s an invaluable tool. Early versions of Silverlight Spy were free, but with its version 3 release it became a commercial product with a price attached. You can download Silverlight Spy from http://silverlightspy.com/silverlightspy and .NET Reflector from www.redgate.com/products/reflector.
  • I also need to get first impressions out of the way with Microsoft. Let’s get them on the table.
  • Uncovering Windows - Silverlight Seminar

    1. 2. Microsoft®
    2. 37. Web desktop Easy to develop and deploy, but limited features and end user experience Rich user experience, often connected, but costly to develop and difficult to deploy Web desktop media & RIA
    3. 38. Design Develop Deploy
    4. 39. Flexible tools / programming / media Compelling UX on all app categories Connected to data, servers, services Media & RIA Desktop Web XHTML / ASP.NET JavaScript / AJAX CSS .NET Languages XAML / WPF Windows Media
    5. 40. Who uses Silverlight? Content Providers Engage visitors with highest quality interactive web sites, video and game experiences with lower costs Designers / Developers Role-specific suite of tools for designers and developers using existing skills and domain knowledge and building on existing application investments Viewers / End Users Sites “light up” equally on Windows and Mac, with a one-time, fast install (~2MB)
    6. 41. Silverlight Momentum By the Numbers 26 months since launch Silverlight first shipped in 2007…
    7. 42. Silverlight Momentum By the Numbers 26 months since launch 500m+ downloads 500m+
    8. 43. Silverlight Momentum By the Numbers Source: Microsoft Developer Tracker 2008 Report 26 months since launch 500m+ downloads 500,000+ Developers & Designers 500,000+
    9. 44. Silverlight Momentum By the Numbers 26 months since launch 500m+ downloads 500,000+ Developers & Designers 350+ partners in 30 countries
    10. 45. Silverlight Momentum By the Numbers 26 months since launch 500m+ downloads 500,000+ Developers & Designers 350+ partners in 30 countries 350+ Microsoft Products & Websites
    11. 46. Silverlight Momentum By the Numbers www.silverlight.net/showcase 26 months since launch 500m+ downloads 500,000+ Developers & Designers 350+ partners in 30 countries 350+ Microsoft Products & Websites Thousands of Apps across the world
    12. 58. Why Silverlight?
    13. 59. Why Silverlight? Low Cost, High Quality Media Compelling, Cross-Platform User Experiences Flexible Programming Model with Collaboration Tools Low Cost, High Quality Media Connected to Data, Servers, and Services
    14. 60. Why Silverlight? Compelling, Cross-Platform User Experiences Flexible Programming Model with Collaboration Tools Low Cost, High Quality Media Connected to Data, Servers, and Services
    15. 61. Why Silverlight? Flexible Programming Model with Collaboration Tools Compelling, Cross-Platform User Experiences Low Cost, High Quality Media Connected to Data, Servers, and Services
    16. 62. Why Silverlight? Connected to Data, Servers, and Services Compelling, Cross-Platform User Experiences Flexible Programming Model with Collaboration Tools Low Cost, High Quality Media
    17. 63. What Can Silverlight Brings To Business Application? <ul><li>The deployment is easy – applications are delivered over the Web or via the web browser </li></ul><ul><li>Very small runtime is required </li></ul><ul><li>Can be written in your favorite .NET language (C#, Visual Basic, etc.) </li></ul><ul><li>Can run in multiple platforms </li></ul><ul><li>Faster to develop and richer than HTML-based applications </li></ul>
    18. 64. SL versus WPF <ul><li>Shared features: </li></ul><ul><li>Both use XAML for defining user interfaces (with Silverlight essentially a subset of WPF). </li></ul><ul><li>Both can be deployed via a browser as sandboxed applications. </li></ul>
    19. 65. SL versus WPF <ul><li>Pros: </li></ul><ul><li>WPF has minimal restrictions, and it requires no sandbox (unless deployed via a browser as an XBAP without full trust turned on). </li></ul><ul><li>WPF has the power of the full .NET Framework behind it. </li></ul>
    20. 66. SL versus WPF <ul><li>Cons: </li></ul><ul><li>WPF requires the full .NET Framework to be installed on the machine. </li></ul><ul><li>WPF is limited to running on Windows only. </li></ul><ul><li>WPF does not have the hype and community/Microsoft support that Silverlight has. </li></ul>
    21. 67. SL versus WinForms <ul><li>Shared features: </li></ul><ul><li>Both can be downloaded via a browser (although Windows Forms applications cannot be run within the browser like Silverlight applications) and update themselves automatically when a new version is available (using click-once with Windows Forms applications). </li></ul>
    22. 68. SL versus WinForms <ul><li>Pros: </li></ul><ul><li>Windows Forms has minimal restrictions and no sandbox. </li></ul><ul><li>has the power of the full .NET Framework behind it.; easy to develop (no need to understand XAML). </li></ul><ul><li>mature, having been around since the inception of the .NET Framework. </li></ul><ul><li>requires no graphical skills to design user interfaces with the standard style of Windows applications. </li></ul>
    23. 69. SL versus WinForms <ul><li>Cons: </li></ul><ul><li>requires the full .NET Framework to be installed on the machine. </li></ul><ul><li>limited to running on Windows only. </li></ul><ul><li>an aging platform with waning support. </li></ul><ul><li>Data binding capabilities aren’t as rich. </li></ul><ul><li>User interfaces aren’t as flexible and don’t have the same styling capabilities. </li></ul>
    24. 70. SL versus WinForms <ul><li>Create unique each flexible UI – support for data binding, vector graphics, animations, etc. </li></ul><ul><li>Makes designing applications clean and easy </li></ul><ul><li>Can share code/s with WP7 and WPF applications </li></ul><ul><li>Setup your runtime and application faster </li></ul>
    25. 71. SL versus HTML Based Applications <ul><li>Renders exactly the same way in each browser or operating system </li></ul><ul><li>Richer, faster to develop </li></ul><ul><li>No constant postbacks </li></ul><ul><li>No need to write in JavaScript </li></ul><ul><li>Can be run offline </li></ul><ul><li>Can be run as standard application </li></ul>
    26. 72. SL versus ASP.NET <ul><li>Shared features: </li></ul><ul><li>Both ASP.NET and Silverlight are available via a web browser (for Silverlight applications, the Silverlight plug-in must be installed first). </li></ul>
    27. 73. SL versus ASP.NET <ul><li>Pros: </li></ul><ul><li>runs on almost all Internet-connected devices. </li></ul><ul><li>does not require a plug-in to be installed. </li></ul><ul><li>It has the power of the full .NET Framework behind it (server side only). </li></ul><ul><li>mature, having been around since the inception of the .NET Framework. </li></ul>
    28. 74. SL versus ASP.NET <ul><li>Cons: </li></ul><ul><li>requires the full .NET Framework to be installed on a Windows server running IIS (although the Mono project provides a potential alternative). </li></ul><ul><li>Client-side code must be written in JavaScript, requiring learning a different language. </li></ul><ul><li>can render differently between browsers, requiring a lot of testing. </li></ul>
    29. 75. SL versus ASP.NET <ul><li>Cons: </li></ul><ul><li>Data binding capabilities aren’t as rich. </li></ul><ul><li>Not as rich or responsive (although Ajax and jQuery can help) </li></ul><ul><li>cannot run with elevated trust to integrate with other software and hardware. </li></ul>
    30. 76. SL versus Adobe Flash/Flex <ul><li>Similar features: </li></ul><ul><li>Both are rich Internet application platforms deployed via a web browser. </li></ul><ul><li>Both can run applications outside of the browser (Silverlight with no additional requirements, Flash with Adobe Air). </li></ul><ul><li>Both use XML-based markup languages to define their user interfaces. </li></ul>
    31. 77. SL versus Adobe Flash/Flex <ul><li>Pros: </li></ul><ul><li>The Flash runtime is almost ubiquitous, installed on almost all Internet-capable PCs. </li></ul><ul><li>The core Flash runtime is a smaller download (1.8MB vs. 6MB), although running outside the browser requires the Adobe Air runtime (which is 15MB). </li></ul>
    32. 78. SL versus Adobe Flash/Flex <ul><li>Cons: </li></ul><ul><li>Code must be written using ActionScript, a JavaScript derivative, which is not as capable or popular as managed code languages (e.g., there’s no equivalent to LINQ and generics), and is specific to Flash/Flex (i.e., code can’t be reused with other applications). </li></ul>
    33. 79. SL versus Adobe Flash/Flex <ul><li>Cons: </li></ul><ul><li>It requires an additional download to run applications outside the browser (Adobe Air), and applications must be packaged separately to run in this runtime (whereas the same Silverlight application will run both within and outside the browser). </li></ul>
    34. 80. Disadvantages of SL <ul><li>Over HTML-based applications </li></ul><ul><li>Reach of users in HTML </li></ul><ul><li>Plug-in requirement </li></ul><ul><li>Over WinForms </li></ul><ul><li>Subset of .NET framework </li></ul><ul><li>Not designed for integrating with other applications, OS, or hardware devices* </li></ul>
    35. 81. Considerations in using SL <ul><li>Determine the current and potential future requirements of your application. </li></ul><ul><li>Identify any feature that conflicts with SL’s limitations </li></ul><ul><li>Do not choose a technology because it’s ‘cool’.* </li></ul><ul><li>SL is not a perfect platform </li></ul>
    36. 82. Support for Higher Quality Video and Audio Media Webcam and Microphone Native Multicast Output Protection Online and Offline Content Protection H.264 Content Protection Developer Tools Beyond the Browser Business Applications Rich Experiences Media Local Recording
    37. 83. Empowering Rich Experiences Rich Experiences Developer Tools Beyond the Browser Business Applications Rich Experiences Media Fluid User Interface Copy and Paste Drag and Drop Productivity Enhancements Google Chrome Support Enhanced Performance
    38. 84. Business Applications Business Applications Developer Tools Beyond the Browser Business Applications Rich Experiences Media Printing Forms Controls WCF RIA Services Enhanced Data binding Internationalization Managed Extensibility Framework
    39. 85. Silverlight 4 New Capabilities : Beyond the Browser Beyond the Browser Beyond the Browser Developer Tools Beyond the Browser Business Applications Rich Experiences Media Trusted Applications Render HTML within Silverlight Notifications Local File System Access Applications and Devices Cross Domain Access
    40. 86. Developer Tools World Class tooling for development and design Developer Tools Beyond the Browser Business Applications Rich Experiences Media Silverlight Support Design Surface Drag and Drop Data Binding XAML Intellisense Import Blend Resources Sketchflow
    41. 87. Required Tools <ul><li>Visual Studio 2008/2010 </li></ul><ul><li>Expression Blend 4 and SketchFlow </li></ul><ul><li>Silverlight 4 Tools </li></ul><ul><li>WCF RIA Services* </li></ul><ul><li>Silverlight Toolkit </li></ul><ul><li>SQL Server 2008 </li></ul><ul><li>Silverlight Spy (and .NET reflector)* </li></ul>
    42. 88. Exercise #1: My First Silverlight Application
    43. 89. Exercise #2: Creating an OOB application
    44. 90. Exercise #3: Adding a Notification Window
    45. 91. Exercise #4: Hosting an HTML content in Silverlight
    46. 92. Exercise #5: Using ComInterop With Office
    47. 93. Exercise #6: Using BingMap Control
    48. 94. Exercise #7: Publishing Pivots
    49. 95. Exercise #8: Working with Charts
    50. 96. Exercise #8: Printing in Silverlight
    51. 97. Exercise #9: Using Full Screen Mode
    52. 98. Exercise #10: Using Animations, Behaviors, etc.
    53. 99. Exercise #11: My First Silverlight Business Application
    54. 100. Exercise #12: Validation, Binding, DataForm and DataGrid
    55. 101. Abram John A. Limpin http://abramlimpin.com
    56. 105. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

    ×