Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2
1. Change the Rules
Silverlight 4 – What’s New? ( part 2 )
Mike Taulty, Microsoft UK
mtaulty@microsoft.com
mtaulty.com
@mtaulty
2. this is a talk in 2 parts – this is the 2nd part
• tooling, binding, validation, networking
• controls, desktop, frameworks
3. control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• WCF RIA Services
• Managed Extensibility Framework
4. control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• Managed Extensibility Framework
• WCF RIA Services
5. Change the Rules
implicit styling
demo
Controls
Textbox trimming
FlowDirection
Viewbox
ICommand
• ButtonBase & HyperlinkButton
fluid UI States for ItemsControl
SelectedValuePath
DataGrid enhancements
6. control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• Managed Extensibility Framework
• WCF RIA Services
7. Change the Rules
RichTextBox
demo
all applications
printing
drag and drop
right mouse menus
mousewheel
clipboard access
webcam/microphone
sticky full screen option
8. Change the Rules
control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• Managed Extensibility Framework
• WCF RIA Services
9. Change the Rules
demo
silent installation
HTML display
HTML brush
out of browser Windowing
• startup position
• window width, height
• window closing event
• activation, topmost
• window state
Toast notifications
10. Change the Rules
control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• Managed Extensibility Framework
• WCF RIA Services
11. 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 (signed) or unverified
– non verified applications do not auto update
• can be blocked by group policy settings
12. 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
• e.g. go full screen, write to the clipboard, print, access the webcam or microphone, etc.
– 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 options
13. 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
14. Change the Rules
demo
requesting elevation
install experience
signing XAPs
trusted applications sandbox relaxation
• files
• network
• full screen
• user consent
Window chrome
COM interop
15. Change the Rules
control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• Managed Extensibility Framework
• WCF RIA Services
16. extensible applications with MEF
• 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
17. essential MEF
Compose
• MEF discovers exports via catalogs
– several “in box” catalogs plus many extensibility points
– supports available exports changing at runtime
• and/or can be handed component instances
21. Change the Rules
control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• Managed Extensibility Framework
• WCF RIA Services
22. WCF RIA Services
client server
Service Data
?
Domain
Access Access
Context Domain
Domain
Presentation Service
Domain
Service
Domain
Service
Service
App App
Logic Logic
code sharing and generation
23. Change the Rules
session
“Silverlight 4 for Desktop Developers”
Ingo Rammer, ThinkTecture
14:50, Tomorrow
24. Silverlight 4 is a major release
IDataErrorInfo XPath for XML 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