mike taulty devdays 2010 silverlight 4 - what's new part 2
DESCRIPTION
TRANSCRIPT
Change the Rules
Silverlight 4 – What’s New? ( part 2 )
Mike Taulty, Microsoft UK [email protected] mtaulty.com @mtaulty
this is a talk in 2 parts – this is the 2nd part
• tooling, binding, validation, networking
• controls, desktop, frameworks
control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• WCF RIA Services
• Managed Extensibility Framework
control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• Managed Extensibility Framework
• WCF RIA Services
Change the Rules
demo Controls
implicit styling
Textbox trimming
FlowDirection
Viewbox
ICommand
•ButtonBase & HyperlinkButton
fluid UI States for ItemsControl
SelectedValuePath
DataGrid enhancements
control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• Managed Extensibility Framework
• WCF RIA Services
Change the Rules
demo all applications
RichTextBox
printing
drag and drop
right mouse menus
mousewheel
clipboard access
webcam/microphone
sticky full screen option
Change the Rules
control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• Managed Extensibility Framework
• WCF RIA Services
Change the Rules
demo out of browser
silent installation
HTML display
HTML brush
Windowing
• startup position
• window width, height
• window closing event
• activation, topmost
• window state
Toast notifications
Change the Rules
control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• Managed Extensibility Framework
• WCF RIA Services
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
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
COM interoperability
COM Object
IDispatch
must have a progId
• trusted applications can call to COM code – IDispatch interface only
– must be registered with a ProgId
• programmability is via late binding – dynamic in C#
– no IntelliSense or compile time checking
• no deployment mechanism – for existing code rather than new code
• COM is Windows only
Change the Rules
demo trusted applications
requesting elevation
install experience
signing XAPs
sandbox relaxation
• files
•network
• full screen
•user consent
Window chrome
COM interop
Change the Rules
control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• Managed Extensibility Framework
• WCF RIA Services
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
essential MEF
• 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
Compose
one application of MEF
MyApp.xap
initial, small download
Extras.xap
Change the Rules
demo managed extensibility framework
Change the Rules
“Silverlight 4 MEF Guided Tour”
session Mike Taulty, Microsoft
16:15, Tomorrow
Change the Rules
control enhancements
desktop integration
• all applications
• out of browser applications
• trusted applications
frameworks
• Managed Extensibility Framework
• WCF RIA Services
Data Access
server
App Logic
WCF RIA Services
Presentation
Service Access
App Logic
client
? DomainService
DomainService
DomainService
DomainService
DomainContext
App Logic
code sharing and generation
Change the Rules
“Silverlight 4 for Desktop Developers”
session Ingo Rammer, ThinkTecture
14:50, Tomorrow
Silverlight 4 is a major release
MVVM
Trusted Applications Drag/Drop
StringFormat
UDP, WMS Multicast
WCF RIA
Services Viewbox
Extended Languages
Printing
INotifyDataErrorInfo
Commanding Indic
Languages
BiDi & RTL
MEF
RichTextBox
Right Click
Mouse Wheel
IDataErrorInfo
Datagrid
Enhancements
GPU Acceleration
MP4 DRM
Microphone
Webcam
Clipboard Access
Toast Notifications
HTML
Private Mode Browsing
Google Chrome
COM Automation
Local File System
Composite Transform
Offline DRM Protected Path Output
XAP Signing
Silent Install
Cross-Domain Networking
Custom Window Chrome
Sockets Security
Full Keyboard Full Screen
XPath for XML
Fluid UI Text Trimming
Full PNG Support
Windowing controls Window Close Event
Networking
Silverlight resources?
www.silverlight.net
thank you for coming – please provide feedback
Change the Rules
Silverlight 4 – What’s New ( part 2 )
Mike Taulty, Microsoft UK [email protected] mtaulty.com @mtaulty