1 / 34

Silverlight 5 Beta Features Overview

Silverlight 5 Beta Features Overview. Alex Golesh, Senior Architect, Sela Group alexg@sela.co.il http://blogs.microsoft.co.il/blogs/alex_golesh. Agenda. Introduction What is Silverlight? Tooling New Features Line of Business (LOB) Out of Browser (OOB) General Improvements Q&A

teness
Download Presentation

Silverlight 5 Beta Features Overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Silverlight 5Beta Features Overview Alex Golesh, Senior Architect, Sela Group alexg@sela.co.il http://blogs.microsoft.co.il/blogs/alex_golesh

  2. Agenda • Introduction • What is Silverlight? • Tooling • New Features • Line of Business (LOB) • Out of Browser (OOB) • General Improvements • Q&A • Summary

  3. What is Silverlight? • Client Side RIA Application • Browser Plug-In • Cross-platform, cross-browser, cross-device

  4. What is Silverlight? • Browser Plug-In: Silverlight Runtime • .NET programming model • Vector UI: Text, Graphics, Animation • Doesn’t requires .NET on client machine • .NET development platform • ASP.NET Integration

  5. Silverlight .NET Subset • .NET for Silverlight is a factored subset of full .NET • .NET 3.5 ~200 MB (Windows only) • Desktop ~50 MB (Windows only) • Silverlight ~4 MB (cross platform) • Same APIs, tools and skills • Highly compatible • Moving from Silverlight to desktop .NET with minimal changes • Source, but not binary compatible

  6. Presentation Core – Graphics • 2D Graphics • Vector based • Standard shapes and Paths • Transformations: skew, rotate, scale, translate, matrix • 3D Graphics • Similar to XNA • Hardware Accelerated • Animation Basics • Time-based • Support linear, discrete and spline animation • Animations and graphics can be defined using XAML or code

  7. Extensive Application Markup Language Declarative Programming - XAML XAML C# VB.NET <Button Width="100"> OK <Button.Background> LightBlue </Button.Background> </Button> Button b1 = new Button(); b1.Content = "OK"; b1.Background = new SolidColorBrush(Colors.LightBlue); b1.Width = 100; Dim b1 As New Button b1.Content = "OK" b1.Background = New _ SolidColorBrush(Colors.LightBlue) b1.Width = 100 • Toolable, declarative markup • Code and content are separate • Compatible with Windows Presentation Foundation

  8. Controls • Core controls in box • Button, ListBox, CheckBox, RadioButton, Hyperlink, Slider, ScrollBar , ScrollViewer , ProgressBar , TextInput, etc. • Core layout containers in box • Grid, Stack panel, Canvas, etc. • Other controls shipped as extensions • DataGrid, Menus, ToolBar , etc.

  9. Styling and Templating support • Controls supports styling • Controls supports templating

  10. Silverlight Applications

  11. Introduction • Introduced at MIX11 • Tooling – Visual Studio 2010 SP1 & Blend 4 (special build) • XAML Debugging • Target LOB • Postscript Printing • Implicit Data Templates & Relative Binding Source • Trick Play • Improves OOB/IB model • Elevated trust IB model • Developer only release

  12. Tooling • Visual Studio 2010 SP1 • Improved Intellisense • XAML Debugging • Profiler • Expression Blend Preview for Silverlight 5

  13. Tooling

  14. Line Of Business Applications – New Features • Ancestor RelativeSource support in DataBinding • Implicit Data Templates • Custom Markup Extensions • Style Setters Binding

  15. Ancestor Binding • Bind to ancestor control • Ancestor definition by • Type • Level • Mode

  16. Relative DataBinding

  17. Implicit Data Templates • DataTemplate definition based on type • No x:Key means default • Generates default UI for specified type • Can be overridden in by specific DataTemplate

  18. Implicit Data Templates

  19. Custom Markup Extensions • Class derived from System.Windows.Markup.MarkupExtension • Override one function • ProvideValue • Only parameterless constructor is supported • Positional parameters are not supported (unlike in WPF) • Built-in • x:Null

  20. Custom Markup Extensions

  21. Style Setters Databinidng • Setters value can be databound • Converters works

  22. Out Of Browser • Full file system access • Elevated OOB only • Read/Write permissions of current user • Multiple Child Windows • p/Invoke • Post Beta

  23. Multiple Child Windows • Span multiple tear-off windows • Elevated Out-Of-Browser applications only • System.Windows.Window class • Window Style • Window State • Window Size and Location • Width, Height, Left, Top • Content accepts FrameworkElement

  24. Multiple Tear-off Windows

  25. In-Browser elevated mode • Works like Out-Of-Browser Elevated Mode • Requires XAP signing with certificate in Trusted Publishers store • Requires registry key • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Silverlight\ • AllowElevatedTrustAppsInBrowser = 0×00000001

  26. Additional Features • ClickCount • Part of MouseButtonEventArgs • Realtime Sound • Uses XNA’s SoundEffect • Linked Text Containers • TrickPlay • Text Tracking and Leading • CharacterSpacing property • ComboBox type ahead Searching

  27. Linked Text Containers • Enables to flow long text into overflow container • Very usable for print layouts • Enables magazine and newspaper-style layouts

  28. Trick Play • Enable speed up/slow down video speed • Pitch correction (after Beta) • Controlled by PlaybackRate property of MediaElement

  29. ClickCount

  30. TrickPlay

  31. Linked Text Containers & Text Tracking/Leading

  32. Summary • Available starting April 2011 • Beta Developer release, without “Go-Live” • LOB Ready • Many Improvements

More Related