Even a chimp can write code

Friday, September 26, 2008

Silverlight 2 RC0: Here's what's new

The Silverlight 2 release candidate build has been released to developers so they can prepare for the upcoming release to web (RTW) of the product, and migrate their Beta 2 applications forward. This build has a number of functional, performance and stability related bug fixes. We’ve had to making some breaking changes along the way. There are also a few new features (which explains the silence on this blog and others like it, over the past few weeks). Here’s an incomplete list:

Per-frame callbacks
Create physics animations or override the animation system by hooking up for the CompositionTarget.Rendering event.

Controls
PasswordBox, ComboBox (well, a non-editable dropdown list only for now), MessageBox and ProgressBar.
Updated look and feel for controls.
IsEnabled and IsEnabledChanged added to the Control type.
Exposed virtual On* events on Control e.g. OnGotFocus, OnKeyDown, OnKeyUp, OnMouseEnter etc.

Support for popping up windows
Use the HtmlPage.PopupWindow API, in association with the new AllowHtmlPopupWindow param on the OBJECT tag to open a URI in a new browser window upon a user-initiated action. Note: doesn’t work on Safari because it doesn’t implement the right NPAPI contracts for this.

Accessibility
Improvements in accessibility and UI automation on Silverlight controls.

Networking
Support for making HTTP requests on background threads.
Upload support added to WebClient.
Support for percent escaped internationalized URIs for remote endpoints.

Input
A new LostMouseCapture bubbling event for when you lost capture.
Support for global keyboard character input into a TextBox (diacritics, non-ASCII characters etc.)

Resources
Extended the kinds of things that can be designated as application or element level resources e.g. Color, FontFamily, TextAlignment and many many more.

XAML
Default value support for custom dependency properties via PropertyMetadata.
Support for object element syntax for StaticResource.

With this release, the Silverlight 2 product is feature complete. Absent any major last-minute fire drills, the public surface area (APIs) in this RC should mirror the upcoming RTW product. Thank you for helping us build this product. Your feedback has been our magnetic north. Just a few more days until the ship sails…!

Labels:

Email this | Bookmark this

8 Comments:

  • And still we can't inherit directly from DependencyObject. Bummer !
    Oh well, I'll just have to make do with a horrible looking API then.

    By Anonymous Anonymous, at September 26, 2008 at 11:15 AM  

  • morten: if you look at DependencyObject, it now has a protected ctor allowing you to inherit from it :) Does that work?

    By Blogger Ashish Shetty, at September 26, 2008 at 12:54 PM  

  • This comment has been removed by the author.

    By Blogger dragonshed, at September 26, 2008 at 1:40 PM  

  • Sorry! I can't believe I missed that! Yes that does work! Sweet!

    By Anonymous Anonymous, at September 26, 2008 at 1:44 PM  

  • What does object element syntax on StaticResource mean? Does that mean I don't have to use the {} notation anymore to use it? If so, can you create or point me to a simple snippet of xaml? Thanks!

    By Anonymous Anonymous, at September 26, 2008 at 7:38 PM  

  • Do you know if they are going to release a newer version of the xpctrl.idl file (the current one for Silverlight 1 doesn't have the new interfaces, such as IXcpControl2) required to use the Silverlight COM APIs from agcore.dll?

    By Anonymous Anonymous, at September 26, 2008 at 8:14 PM  

  • what is the process for installing silverlight 2 RC0 .. In my system i have installed silverlight 2.0 beta 2.0 .. whether i can uninstall all silverlight software before i install silverlight 2RC0 .. what are the software are needed to install silverlight 2 RC0

    any one post your comments

    By Blogger Simbu, at September 27, 2008 at 2:33 AM  

  • joe: the Silverlight SDK on MSDN will have a link to the IDL file. I believe it goes online shortly when the runtime is released to web (RTW).

    simbu: if you're developing Silverlight apps, you can get the release candidate (RC0) from http://silverlight.net/GetStarted/sl2rc0.aspx. If you're consuming Silverlight apps, I'd recommend waiting short while for the official release on http://www.microsoft.com/silverlight

    By Blogger Ashish Shetty, at October 3, 2008 at 12:27 PM  

Post a Comment | Home | Inference: my personal blog