27
Change the Rules Silverlight 4 – What’s New? ( part 2 ) Mike Taulty, Microsoft UK [email protected] mtaulty.com @mtaulty

Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

  • Upload
    ukdpe

  • View
    1.123

  • Download
    0

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

Change the Rules

Silverlight 4 – What’s New? ( part 2 )

Mike Taulty, Microsoft UK [email protected] mtaulty.com @mtaulty

Page 2: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

this is a talk in 2 parts – this is the 2nd part

• tooling, binding, validation, networking

• controls, desktop, frameworks

Page 3: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

control enhancements

desktop integration

• all applications

• out of browser applications

• trusted applications

frameworks

• WCF RIA Services

• Managed Extensibility Framework

Page 4: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

control enhancements

desktop integration

• all applications

• out of browser applications

• trusted applications

frameworks

• Managed Extensibility Framework

• WCF RIA Services

Page 5: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

Change the Rules

demo Controls

implicit styling

Textbox trimming

FlowDirection

Viewbox

ICommand

•ButtonBase & HyperlinkButton

fluid UI States for ItemsControl

SelectedValuePath

DataGrid enhancements

Page 6: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

control enhancements

desktop integration

• all applications

• out of browser applications

• trusted applications

frameworks

• Managed Extensibility Framework

• WCF RIA Services

Page 7: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

Change the Rules

demo all applications

RichTextBox

printing

drag and drop

right mouse menus

mousewheel

clipboard access

webcam/microphone

sticky full screen option

Page 8: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

Change the Rules

control enhancements

desktop integration

• all applications

• out of browser applications

• trusted applications

frameworks

• Managed Extensibility Framework

• WCF RIA Services

Page 9: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

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

Page 10: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

Change the Rules

control enhancements

desktop integration

• all applications

• out of browser applications

• trusted applications

frameworks

• Managed Extensibility Framework

• WCF RIA Services

Page 11: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

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

Page 12: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

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

Page 13: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

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

Page 14: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

Change the Rules

demo trusted applications

requesting elevation

install experience

signing XAPs

sandbox relaxation

• files

•network

• full screen

•user consent

Window chrome

COM interop

Page 15: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

Change the Rules

control enhancements

desktop integration

• all applications

• out of browser applications

• trusted applications

frameworks

• Managed Extensibility Framework

• WCF RIA Services

Page 16: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

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

Page 17: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

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

Page 18: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

one application of MEF

MyApp.xap

initial, small download

Extras.xap

Page 19: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

Change the Rules

demo managed extensibility framework

Page 20: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

Change the Rules

“Silverlight 4 MEF Guided Tour”

session Mike Taulty, Microsoft

16:15, Tomorrow

Page 21: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

Change the Rules

control enhancements

desktop integration

• all applications

• out of browser applications

• trusted applications

frameworks

• Managed Extensibility Framework

• WCF RIA Services

Page 22: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

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

Page 23: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

Change the Rules

“Silverlight 4 for Desktop Developers”

session Ingo Rammer, ThinkTecture

14:50, Tomorrow

Page 24: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

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

Page 25: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

Silverlight resources?

www.silverlight.net

Page 26: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

thank you for coming – please provide feedback

Page 27: Mike Taulty DevDays 2010 Silverlight 4 - What's New Part 2

Change the Rules

Silverlight 4 – What’s New ( part 2 )

Mike Taulty, Microsoft UK [email protected] mtaulty.com @mtaulty