From Windows Presentation Foundation To Silverlight

1,891 views
1,793 views

Published on

Topic: From Windows Presentation Foundation To Silverlight

Date: 21th May 2010

A brief introduction of SL for WPF Developers

This Presentation assume that you have at least 6 months experience with WPF

Feel free to pass comments.

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

  • Be the first to like this

No Downloads
Views
Total views
1,891
On SlideShare
0
From Embeds
0
Number of Embeds
277
Actions
Shares
0
Downloads
37
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

From Windows Presentation Foundation To Silverlight

  1. 1. From Windows Presentation Foundation To Silverlight A brief introduction of SL for WPF Developers By: Shahzad Sarwar This Presentation assume that you have at least 6 months experience with WPF
  2. 2. Basics of Sliverlight <ul><li>Next generation of Microsoft .NET-based media experiences and rich interactive applications (RIAs) for the Web. </li></ul><ul><li>Cross-platform and cross-browser plug-in </li></ul><ul><li>Subset of the .NET Framework and Windows Presentation Foundation (WPF). </li></ul><ul><li>Silverlight was originally called Windows Presentation Foundation Everywhere (WPF/E). </li></ul>
  3. 3. Supported Platforms Limited version of Silverlight (called &quot;Moonlight&quot;) that supports Linux http://www.mono-project.com/Moonlight
  4. 4. ASP .Net Vs Sliverlight
  5. 5. History <ul><li>Microsoft introduced ASP.NET AJAX to extend the client scripting capabilities and improve performance. </li></ul><ul><li>Silverlight 1and 2 </li></ul>
  6. 6. What New in SL 3 <ul><li>Read details here: </li></ul><ul><li>http://timheuer.com/blog/archive/2009/03/18/silverlight-3-whats-new-a-guide.aspx </li></ul>
  7. 7. Differences <ul><li>Layout Controls </li></ul><ul><ul><li>Canvas Control (Same as WPF) </li></ul></ul><ul><ul><li>StackPanel Control (Same as WPF) </li></ul></ul><ul><ul><li>Grid Control (Same as WPF) </li></ul></ul><ul><li>User Interface Controls </li></ul><ul><ul><li>Border Control (Same as WPF) </li></ul></ul><ul><ul><li>Button Control (Same as WPF) </li></ul></ul><ul><ul><li>Calendar Control (Same as WPF) </li></ul></ul><ul><ul><li>Checkbox Control (Same as WPF) </li></ul></ul><ul><ul><li>DatePicker Control (Same as WPF) </li></ul></ul><ul><ul><li>HyperlinkButton Control (Same as WPF) </li></ul></ul>
  8. 8. Differences <ul><ul><li>Image Control (Same as WPF) </li></ul></ul><ul><ul><li>RadioButton Control (Same as WPF) </li></ul></ul><ul><ul><li>ScrollViewer Control (Same as WPF) </li></ul></ul><ul><ul><li>Slider Control (Same as WPF) </li></ul></ul><ul><ul><li>TextBlock Control (Same as WPF) </li></ul></ul><ul><ul><li>Textbox Control (Same as WPF) </li></ul></ul><ul><li>Designing User Interfaces </li></ul><ul><ul><li>Styles (Same as WPF) </li></ul></ul><ul><ul><li>Resources (Same as WPF, But does not support dynamic resources. ) </li></ul></ul>
  9. 9. Differences <ul><li>Screen Coordinate System and Measurements </li></ul><ul><ul><li>WPF by default is based on Device Independent Pixel (DIP) units. Silverlight always based on pixel units. </li></ul></ul><ul><ul><li>WPF measurement properties specified in XAML can include a unit measure string suffix that changes the interpretation of the preceding numeric value. Silverlight measurements are always pixel units. ( Height=&quot;2cm&quot; ) </li></ul></ul><ul><ul><li>WPF has a theoretically unbounded coordinate system. Silverlight has a bounded coordinate system. </li></ul></ul>
  10. 10. Differences <ul><li>There is no Flow Document support in Silverlight. In WPF Yes. </li></ul><ul><li>Silverlight does not support dynamic resources. </li></ul><ul><li>Supported in WPF but not in Silverlight: </li></ul><ul><ul><li>TileMode property for TileBrush objects. </li></ul></ul><ul><ul><li>ValueConversion attribute. </li></ul></ul><ul><ul><li>ITyped list, InstanceFactory, or BindingList(T). </li></ul></ul><ul><ul><li>Electronic Documentation Management (EDM). </li></ul></ul><ul><ul><li>MarkupExtension base class. </li></ul></ul>
  11. 11. Differences <ul><li>Silverlight does not provide any of the following: </li></ul><ul><ul><li>Datasets. </li></ul></ul><ul><ul><li>ICustomTypeDescriptor, IListSource, or IBindingList. </li></ul></ul><ul><ul><li>Binding directly to XML data or XPath binding. (The recommended alternative is to use the System.Xml.Linq API for XML business objects.) </li></ul></ul><ul><ul><li>BindingMode.OneWayToSource binding. </li></ul></ul><ul><ul><li>Discrete notification for source and target updates with dedicated NotifyOnSourceUpdated or NotifyOnTargetUpdated properties (and related events) on a binding. </li></ul></ul><ul><ul><li>Bindable Run . </li></ul></ul>
  12. 12. Differences <ul><li>3-D drawing support in Silverlight is limited. </li></ul><ul><li>In WPF, all visual elements derive from the Visual class, which does not exist in Silverlight. Limited concept of visual and logical tree. </li></ul><ul><li>Silverlight does not include Freezable objects in its object model. </li></ul><ul><li>Silverlight introduces the Deep Zoom feature, which allows zooming in and out of high-resolution images or collections of images. (Not in WPF) </li></ul>
  13. 13. Differences <ul><li>WPF supports all the fonts installed in the Windows operating system. Silverlight, however, natively supports only a handful of fonts. Additional fonts must be embedded within a Silverlight application in order to use them, or dynamically downloaded as needed </li></ul><ul><li>WPF supports all three types of routed events, while Silverlight only supports direct and bubbling events. </li></ul><ul><li>Additionally, WPF supports the creation of custom routed events via the EventManager helper class. Silverlight currently does not support custom routed events. </li></ul>
  14. 14. References: <ul><li>Must read following 2 References: </li></ul><ul><li>http:// wpfslguidance.codeplex.com / </li></ul><ul><li>http://msdn.microsoft.com/en-us/library/cc903925(VS.95).aspx </li></ul><ul><li>And be ready for Siverlight 3 Development in PCMS </li></ul>
  15. 15. <ul><li>Silverlight version 4 is already release, let explore SL 4 in next presentation </li></ul><ul><li>Keep visiting </li></ul><ul><li>http://softarchitect.wordpress.com </li></ul>

×