Presentation is loading. Please wait.

Presentation is loading. Please wait.

Ronnie Saurenmann Principal Architect Microsoft Switzerland Silverlight 5 Advanced.

Similar presentations


Presentation on theme: "Ronnie Saurenmann Principal Architect Microsoft Switzerland Silverlight 5 Advanced."— Presentation transcript:

1 Ronnie Saurenmann Principal Architect Microsoft Switzerland ronnies@microsoft.com Silverlight 5 Advanced

2 Unlimited power

3 Save as Dialog New Default file name

4

5 In Browser Trusted Apps SL4: OOB apps run trusted with user consent SL5: in-browser trusted apps with admin consent Set permissions via group policy Uses Authenticode certificate No prompts or installs

6 Trusted Apps Sandboxed App Trusted SL4 App Trusted SL5 App Prompt-freeNoYes Cross domain networkingNoYes Full keyboard in full screen mode NoYes COMNoYes Unrestricted file accessNoKinda*Yes P/InvokeNo Yes Run in-browserNo Yes

7 Creating a Trusted App Just like SL4 trusted OOB

8 Creating a Trusted App Sign the.xap Same as for a trusted OOB In Visual Studio or on command line signtool.exe sign /v /f nameOfCert.pfx /p " " nameOfApp.xap signtool.exe sign /v /f nameOfCert.pfx /p " " nameOfApp.xap or

9 Permissions in Group Policy Actually, only one permission – trusted or not Network admin specifies which publishers are trusted Same as ClickOnce Xaps are associated with publishers by Authenticode Apps from localhost: are automatically trusted

10 Unrestricted File Access

11

12 P/Invoke P/Invoke lets you call native code COM (SL4) also lets you call native code Anything you can do with COM can also be done with P/Invoke Strongly typed No COM registration P/Invoke is optimized for Win32 APIs & native C/C++ code COM is optimized for COM Automation APIs, eg Office COM & P/Invoke are available on Windows to trusted apps

13 P/Invoke Works exactly like it does in.NET Framework [DllImport("kernel32.dll")] static extern int GetDriveType(string lpRootPathName); … int type = GetDriveType(drive);

14 WebBrowser In-Browser Use HTML inside Silverlight apps To reuse existing HTML/ASP.NET content To integrate with outside websites In SL4, only OOBs got WebBrowser (WebOC) In SL5, in-browser WebBrowser support (WebOC/IE) Trusted only!

15

16 Markup Extensions Custom Markup Extensions

17

18 Relative Source Ancestor Binding Used For Control Hierarchy Binding <TextBlock Text="{Binding StateName}" Visibility="{Binding IsDropDownOpen, RelativeSource={RelativeSource FindAncestor AncestorType=ComboBox}, Converter={StaticResource BoolToVisibilityConverter} }"/>

19

20 Text Clarity Sharpens text by snapping with pixels Great for low res devices

21 Vector Printing

22 Text Enhancements Text Tracking Text Leading Linked Text Containers Flow Rich Text from one container to another Dynamically flows on resize <RichTextBox OverflowContentTarget="{Binding ElementName=overflow1}">...

23

24 Performance Faster Startup Multi ‐ core background JIT support for improved startup performance. XAML Parser performance optimizations Improved Graphics stack The graphics stack has been re ‐ architected Bring over improvements from WP7, such as Independent Animations. Network Latency optimizations Text layout performance improvements Hardware acceleration is enabled in windowless mode with Internet Explorer 9

25 64-bit Support 64-bit machines & apps are becoming increasingly common SL5 can run in a 64-bit process 64-bit browsers Sidebar on 64-bit Windows

26 Profiling with Visual Studio 2010 In Visual Studio SP1 Works already for SL4

27

28 Media Variable Speed Playback Pitch Correction (not yet in Beta) +32x to -32x H.264 Hardware Decode Remote Control Support

29

30 3D Feature Intro High-level components Drawing Surface control to compose 3D within a page Core of XNA Graphics from Game Studio 4 GPU access via immediate mode drawing APIs Shader model 2.0 using HLSL Built-in effects and custom shaders

31 3D Feature Intro Runtime requirements

32

33 WPF vs. Silverlight 3D WPF 3D Retained rendering model Higher level API Some scenarios require more control Silverlight 3D (XNA Graphics) Immediate rendering model Direct control, performance, flexibility Web version includes core graphics APIs Low level API

34 Third Party 3D Engines

35

36 Where to start?

37 © 2011 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.


Download ppt "Ronnie Saurenmann Principal Architect Microsoft Switzerland Silverlight 5 Advanced."

Similar presentations


Ads by Google