Presentation is loading. Please wait.

Presentation is loading. Please wait.

What’s new in Silverlight 4 Michael Sync (Silverlight MVP)

Similar presentations


Presentation on theme: "What’s new in Silverlight 4 Michael Sync (Silverlight MVP)"— Presentation transcript:

1 What’s new in Silverlight 4 Michael Sync (Silverlight MVP)

2 Main Features File Drag and Drop from Desktop Printing RichTextArea control Webcam and microphone access Validation with IDataErrorInfo

3 File Drag and Drop Allows you to drag files from desktop to Silverlight Page AllowDrag = True Listen the Drop event Limitations –Windowless mode is not supported in Win –Need to use Javascript in Mac –Full Screen Mode is not supported

4 Demo Jeff Prosise's Silverlight 4 Drag and Drop Support

5 Printing Support PrintDocument and DocumentName Events –StartPrint –PrintPage (PageVisual) –EndPrint (PrintError) HasMorePages Print() must be user-initiated Limitations –Performance

6 Rich Text Area (Demo) John Papa’s Rich Text Area

7 Limitation of RichTextArea TextDecorations.Strikethrough Superscript and Subscript TextAlignment.Justify TextElement.BackgroundProperty EditingCommands (esp: ToggleNumbering, ToggleBullets, DecreaseIndentation and IncreaseIndentation) Hyperlink is unclickable when RTA is not in read-only mode

8 Validation IDataErrorInfo

9 Out-Of-Browser (elevated permissions) WebBrowser control Notification Direct access to User folder (Full-Trust) COM Interoperability (Full-Trust) Clipboard direct access (Full-Trust) Relaxed cross domain restriction

10 WebBrowser control Navigate(Uri) and NavigateToString(string) SL => JS ( Source + InvokeScript ) JS => SL (ScriptNotify + window.external) HTML Brush

11 NotificationWindow API

12 NotificationWindow API (Code) // create the nofitication window API NotificationWindow notify = new NotificationWindow(); notify.Height = 74; notify.Width = 329; // creating the content to be in the window CustomNotification custom = new CustomNotification(); custom.Header = "Sample Header"; custom.Text = "Hey this is a better looking notification!"; custom.Width = notify.Width; custom.Height = notify.Height; // set the window content notify.Content = custom; // displaying the notification notify.Show(4000);

13 Other Features MEF Implicit theming Right-click event handling Mouse wheel support Cross-Browser Clipboard ICommand support on ButtonBase and Hyperlink TextTrimming StringFormat, TargetNullValue, FallbackValue Full keyboard access in full screen Offline DRM for media playback H.264 protected content via PlayReady Google Chrome

14


Download ppt "What’s new in Silverlight 4 Michael Sync (Silverlight MVP)"

Similar presentations


Ads by Google