• Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
706
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
18
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Silverlight 4 – (r)evolution Mike Taulty Microsoft UK mtaulty@microsoft.com mtaulty.com @mtaulty
  • 2. Silverlight release history V1 V2 V3 Sept 2007 Oct 2008 July 2009 versions are back-compatible, no side-by-side
  • 3. Silverlight 4 - browser & platform support private mode browsing supported
  • 4. a major release XPath for XML IDataErrorInfo MP4 DRM Indic Languages Commanding Google Chrome Sockets Security Networking Text Trimming Cross-Domain Networking Offline DRM Fluid UI Protected Path Output INotifyDataErrorInfo Trusted Applications Right Click Full Keyboard Full Screen Silent Install HTML Drag/Drop Composite Transform BiDi & RTL Webcam RichTextBox StringFormat Printing COM Automation Private Mode Browsing Custom Window Chrome Clipboard Access Datagrid Enhancements Local File System Window Close Event Windowing controls Extended Languages UDP, WMS Multicast MVVM XAP Signing Microphone MEF WCF RIA Mouse Wheel Full PNG Support Services GPU Acceleration Viewbox Toast Notifications
  • 5. talking points
  • 6. talking points
  • 7. talking points
  • 8. multitargeting demo drag/drop designer properties window •resources, binding, brushes, etc. data sources window document outline window assembly sharing general VS 2010 goodness •latest languages, framework, profiler support, etc.
  • 9. MVVM support demo sample data for CLR objects animating layout changes animating listbox item states state transitions with effects PathListBox behaviours, actions, triggers
  • 10. talking points
  • 11. talking points
  • 12. controls RichTextBox, Viewbox right to left layouts via FlowDirection implicit styling additions SelectedValue[Path] on Selectors (e.g. ComboBox) text trimming on the TextBlock better column layout on the DataGrid + copy/paste
  • 13. data-binding and validation easier, more natural bindings target of bindings is now DependencyObject not FrameworkElement new {binding} capabilities TargetNullValue, FallbackValue, StringFormat, string indexers new validation capabilities validate types implementing IDataErrorInfo validates types implementing INotifyDataErrorInfo
  • 14. networking Client networking stack for HTTP integrated authentication (automatic/pass-thru) caching, upload progress, referer header, connections Sockets TCP security policy – opt to download via HTTP UDP multicasting to [any/single] source groups Windows Communication Foundation addition of a TCP channel
  • 15. improved pluggable navigation system navigate: http://booksite/default.aspx#/authors/steinbeck navigate: /authors/steinbeck Frame ContentLoader UriMapper Uri MappedUri /authors/{author} /views/authors.xaml?surname={author} Asynchronously turns the URI /{pageName} /views/{pagename}.xaml into a Page or UserControl
  • 16. media video – support added for offline DRM and output protection Windows Media Server multicasting imaging hardware accelerated DeepZoom imaging all PNG formats supported
  • 17. demo controls, binding, validation
  • 18. talking points
  • 19. talking points
  • 20. demo desktop integration for all applications and out-of-browser applications
  • 21. trusted applications Silverlight 4 introduces the trusted application only for out of browser applications indicated by metadata setting in the XAP’s manifest • different installation experience – can be verified or unverified ( no auto update ) • can be blocked by group policy settings
  • 22. different types of Silverlight 4 apps • relaxed sandbox for trusted applications – no network restrictions on ports and x-domain/x-scheme access – operations which require user initiation or consent relaxed – open access to files in my [documents/videos/pictures/music] – ability to access full file paths from file open/save dialogs – access to the keyboard in full screen mode – window options – alter chrome and offer alternate move/resize
  • 23. COM interoperability • trusted applications can call to COM code – IDispatch interface only – must be registered with a ProgId IDispatch • programmability is via late binding must have a – dynamic in C# – no IntelliSense or compile time checking progId • no deployment mechanism COM – for existing code rather than new code Object • COM is Windows only
  • 24. demo trusted applications
  • 25. talking points
  • 26. talking points
  • 27. WCF Data Services RESTful service stack implementing the Open Data Protocol ( www.odata.org ) Silverlight client stack improvements cross-domain access to a data service automatic change tracking of client-side entities arbitrary projections of data support for paging & result-set counts
  • 28. the Managed Extensibility Framework the Managed Extensibility Framework “an extensible framework for composing applications from a set of loosely-coupled parts discovered and evolving at run-time“ (mike) versions .NET Framework shipping with Silverlight 4 .NET Framework 4 shipping with VS 2010 Codeplex source for Silverlight 3 & .NET 3.5 Sp1
  • 29. essence of MEF extensible set of catalogs which discover & describe availablee.g. ISpellChecker components e.g. ISpellChecker component catalog import MEF export Composition component catalog component Engine component ... search for export(s) e.g. WordProcessor that matches import component catalog e.g. SuperSpellChecker
  • 30. essence of MEF MEF’s engine can monitor its catalogs and update this relationship based on additions over run-time import export component component e.g. another ISpellChecker shows up in a catalog?
  • 31. one application of MEF in Silverlight MyApp.xap initial, small download Extras.xap
  • 32. demo extensible applications with MEF
  • 33. WCF RIA Services RIA Services client server • tooling • framework • services Service Data • pattern ? Domain Access Access Context Domain Domain Presentation Service Domain Service Domain Service Service App App Logic Logic code sharing and generation
  • 34. demo productive applications with WCF RIA Services
  • 35. a major release XPath for XML IDataErrorInfo MP4 DRM Indic Languages Commanding Google Chrome Sockets Security Networking Text Trimming Cross-Domain Networking Offline DRM Fluid UI Protected Path Output INotifyDataErrorInfo Trusted Applications Right Click Full Keyboard Full Screen Silent Install HTML Drag/Drop Composite Transform BiDi & RTL Webcam RichTextBox StringFormat Printing COM Automation Private Mode Browsing Custom Window Chrome Clipboard Access Datagrid Enhancements Local File System Window Close Event Windowing controls Extended Languages UDP, WMS Multicast MVVM XAP Signing Microphone MEF WCF RIA Mouse Wheel Full PNG Support Services GPU Acceleration Viewbox Toast Notifications
  • 36. resources www.silverlight.net
  • 37. feedback you will get an email
  • 38. © 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.