ITCamp 2011 - Raul Andrisan - What’s new in Silverlight 5
1. What’s new in
Silverlight 5
Raul Andrisan
Technical trainer, HPC Consulting
raul.andrisan@hpc-consulting.ro
http://blog.andrisan.ro
@raulandrisan
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
2. IT Camp 2011
• Thanks for coming!
• ITCamp is made possible by our sponsors:
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
3. Session agenda
• What’s new in
– Databinding
– Controls
– Text, Printing, Media
– Trusted application
– Out of Browser Experience
– Pivot Viewer
• XNA-based HW accelerated 3D in SL5
• Q&A
• Feedback & prizes
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
4. SILVERLIGHT EVOLUTION
• 5 versions in 5 years
• From media to business applications
• Microsoft’s multiplatform medium
– Windows
– Mac OS X
– Windows Phone
– Embedded
– Linux (Moonlight)
• Community driven http://dotnet.uservoice.com
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
5. What’s new in
DATABINDING
• Implicit Data Templates
• Ancestor RelativeSource Demo
• Binding in Setters
• Custom Markup Extensions
• Breakpoints in XAML Bindings
• DataContextChanged Event
• UpdateSourceTrigger
=> Better MVVM Support, less hookup code
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
6. What’s new in
CONTROLS Demo
• JumpTo in Combobox
• PivotViewer now in SDK
• Extended templating support in
PivotViewer
• Multi-click support for MouseDown &
MouseUp Events
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
7. What’s new in
PIVOT VIEWER
• Available in Silverlight 5 SDK
• Visuals Templatable with XAML
• Supports Dynamic Observable Collections
• Updates data dynamically
• Templates for different zoom levels
• Can host any content – even deep zoom,
graphs, etc
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
8. What’s new in
TEXT, PRINTING
• Rich text in any form, dynamically resizes
• + text sharpness, pixel snapping
• Line heigh, line spacing,
• Better performance for text
Demo
• Vector printing for text
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
9. VECTOR PRINTING
Spool Time
Text
Shapes Bitmap
Vector
0 100 200 300 400 500 600 700 800
(milliseconds)
File Size Sent to Printer
Text
Shapes Bitmap
Vector
0 20 40 60 80 100 120 140
(MB)
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
10. TEXT CLARITY
• More sharp text by snapping to pixels and
other techniques
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
11. What’s new in
MEDIA
• Composition thread for smooth
animations
Demo
• Hardware decoding of video
• 1080p h.264 video support
• Trick play – accelerated video + pitch
correction
• Low latency audio – immediate audio API
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
12. What’s new in
TRUSTED APPLICATIONS
• Can trust apps in-browser using
certificates, registry keys
– Permissions in group policy
– No prompts
– Integrate with the browser
– Part of a larger web HTML application
• Can user the WebBrowser control
• P/Invoke support
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
13. What’s new in
OUT OF BROWSER APPS
• Unrestricted Access to File System
– Iteration through files/directories
– Changing/accessing rights, etc
• Multiple Windows API
• Can install as standalone apps
Demo
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
14. UNRESTRICTED FILE ACCESS
SL4 trusted apps SL5 trusted apps
can access: can access:
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
15. Demo
Short Demo + Workflow
XNA 3D IN SILVERLIGHT
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
16. 3D IN SILVERLIGHT 5
• Immediate-mode API
• Vertex/Pixel Shader Based
• New control: DrawingSurface
• Very Low Level/High Performance
• Can use Babylon 3D engine
• Does not support declarative XAML in
WPF
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
17. Q&A
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro
18. Don’t forget!
Get your free Azure pass! We want your feedback!
• 30+15 days, no CC req’d • Win a WP7 smartphone
– http://bit.ly/ITCAMP11 – Fill in your feedback forms
– Promo code: ITCAMP11 – Raffle: end of the day
Premium conference on Microsoft’s Dev and ITPro technologies @itcampro / #itcampro