TextBoxBeta2 includes some significant improvements to the built-in TextBox editing control. Text scrolling with text-wrap, multi-line text selection, document navigation keys, and copy/paste from the clipboard are now supported.
Beta2 also now includes IME Level 3 input support (including candidate window selection) for non-western character sets:
Input SupportBeta2 adds additional keyboard support in FullScreen mode (arrow, tab, enter, home, end, pageup/pagedown, space). Note: full key input support isn't allowed to avoid password spoofing scenarios.
Beta2 also adds new APIs to support inking and stylus input support.
UI Automation and Accessibility Beta2 adds UI Automation Framework support into Silverlight. UI Automation (or UIA) enables screen readers and other assistive tools to identify and interact with the components that make up your Silverlight 2 application.
Beta2 uses the UIA framework and adds UIA based behaviors to an initial set of Silverlight controls. By the final release of Silverlight 2 all controls will have UIA based behaviors built-in. We will also add support for high-contrast scenarios. These features will enable you to build accessible, section 508 compliant, applications. This UIA support will also enable automated UI testing of applications.
Animation and Graphic SystemBeta2 adds support for animating custom dependency properties. Object animation support (animating structs) is also now supported. Beta2 also supports the ability to create Storyboards in code that can animate parts of the render tree without having to be added to it (allowing you to embed animations entirely in code). Per frame animation callback support will be added in the final release.
Beta2 includes a new Visual Tree Helper static class that provides advanced visual tree inspection APIs. It provides features such as the ability to enumerate children of an element and getting the ancestor/parent of a given reference element. These APIs work against any UIElement you pass to it.
DeepZoomBeta2 now supports an XML based manifest file for DeepZoom collections. Beta2 also adds extensible MultiScaleTileSource support for DeepZoom (which allows developers to hook up existing image pyramids that don’t conform with the Deep Zoom format to the high performance rendering of Deep Zoom).
WPF CompatibilitySilverlight Beta2 includes a lot of fixes/changes to improve API compatibility between Silverlight and WPF (note: the final Silverlight release will contain some additional compatibility work as well). We are also adding some new APIs we are introducing in Silverlight 2 to WPF in .NET 3.5 SP1 this summer.
This work, combined with the VSM support we are adding to WPF later this year, will enable good code re-use across browser and desktop applications.
Media ImprovementsSilverlight 2 Beta2 includes some significant Media related feature work:
Adaptive StreamingBeta2 adds support for "adaptive streaming" - which enables you to encode media at multiple bit-rates and then have a Silverlight application dynamically switch between them depending on the network and CPU conditions.
This enables much richer end-user media experiences - since it makes it possible for content providers to provide both lower-end and higher-end bit rate versions of a video, and then have Silverlight choose the optimal one to use based on an end-user's machine hardware and network capacity. If while watching the video the machine or network conditions change, Silverlight can automatically switch to a more appropriate bit-rate without any buffering or interruption glitch.
Silverlight's support for adaptive streaming is extensible - which enables anyone to plug-in their own logic to control where the media content comes from, and what bit-rate should be used. This means that any CDN or media delivery provider can easily integrate their systems with Silverlight and deliver super high quality video delivery.
Content ProtectionBeta2 includes DRM content protection, and supports Windows DRM and PlayReady DRM. Both work cross browser and cross platform.
Server Side PlaylistsBeta2 adds support for server side playlists (previous releases only supported client-side playlists).
Networking ImprovementsSilverlight 2 Beta2 includes a bunch of work in the networking space:
Cross Domain SocketsBeta2 now enables cross domain networking support using both HTTP and Sockets (meaning your application can call sites other than the one the application was downloaded from).
Silverlight will check for the existence of an XML policy file on target servers that indicates whether cross domain network access is allowed.
Silverlight supports a new XML policy file format that we've developed, as well as Flash policy files (which means existing sites open to Flash can be called from Silverlight without any additional work).
Background Thread NetworkingBeta2 now allows Silverlight applications to initiate network requests on background threads, as well as process/handle network responses on background threads. This enables a bunch of powerful scenarios, and allows you to avoid blocking the browser's UI thread while doing both HTTP and Socket network communication.
Duplex Communication (Server Push)Beta2 enables support for setting up duplex communication channels with a WCF service on a server. This enables a clean programming model that allows servers to "push" messages to Silverlight clients without the developer having to manually poll servers for changes. This programming model is very useful in a variety of scenarios, including instant messenger/chat applications, and monitoring/update applications like stock tickers and trader applications.
Web ServicesBeta2 enables significantly improved interop with SOAP based web-services. Web service proxy class end-point URLs can now be configured without recompiling applications. Visual Studio also now has a new "Silverlight-enabled WCF Service" project item template that you can add to ASP.NET web projects to publish services to clients.
REST and ADO.NET Data ServicesSilverlight includes support for working with REST based web-services.
Beta2 adds support for calling and consuming ADO.NET Data Services (formerly code-named: "Astoria"). ADO.NET Data Services will ship as part of .NET 3.5 SP1 and makes it easy to publish data end-points within an ASP.NET web project that are consumable from any client using REST URIs. Silverlight Beta2 now includes ADO.NET Data Service client support that allows you to easily call these services (and optionally use LINQ expressions within Silverlight to express remote REST queries to them).
JSONSilverlight supports calling JSON-based services on the web.
Beta2 now includes LINQ to JSON support that enables you to easily query, filter, and map JSON results to .NET objects within a Silverlight application. This makes it easy to call and work with existing AJAX end-points and services published on the web.
Data ImprovementsSilverlight 2 Beta2 includes a bunch of work in the data space:
DataGridBeta2 adds a number of new features to the DataGrid control. These include:
- Auto-sizing support for columns and rows
- Column sorting (with both single column and multi-column sort support)
- Column re-ordering support by end-users (allowing them to drag/drop columns to re-arrange the order)
- Frozen column support (allowing you to prevent a particular column from being customized)
- Performance and bug fixes
DataBindingBeta2 adds more core data-binding features and better validation support. These include:
- Per-binding Validation and BindingValidationError event handler support on controls (allowing you to handle input validation with TwoWay bindings)
- Support for binding expressions on attached properties
- Richer binding value conversion support (including value conversion fallback support)
Isolated StorageSilverlight enables applications to store data locally on a client (via a feature we call "Isolated Storage"). Applications can prompt users to grant them size permissions for this storage (for example: a user might grant an email program 50MB of local storage).
Beta2 increases the default local storage space provided to Silverlight applications to 1MB in size. Beta2 also now provides better end-user support for managing per-site storage permissions, as well as the ability to easily revoke/delete an application's local storage. Management UI to control this can now be brought up by an end-user by right-clicking on a Silverlight application and choosing the "Silverlight Configuration" menu option.
Understanding Compatibility with Silverlight 1.0 and Silverlight 2 Beta 1Silverlight 2 Beta2 is compatible with applications that target Silverlight 1.0.
Silverlight 2 Beta2 will not run applications that target Silverlight 2 Beta1, since we've made a number of API changes between the two betas for the new features being added in Silverlight 2. Browsers that have Silverlight 2 Beta1 installed which visit a site that hosts a Silverlight Beta2 application will be prompted to upgrade to the newer beta of Silverlight. Once they do this they won't be able to run Beta1 applications without uninstalling Beta2. This means that if you have published a running sample on the web built with Beta1 you will probably want to update it to Beta2 soon.
We have published a document that details the changes between Beta1 and Beta2
here that can help with this. I also recommend reading Shawn Wildermuth's
What Changed in Silverlight 2 Beta2 and
Upgrading your Silverlight 2 Projects to Beta2 posts for more details on some of the changes between Beta1 and Beta2.
SummaryTo learn more about Silverlight 2 and download the Beta2 release, please visit the
http://www.silverlight.net and
http://expression.microsoft.com web-sites. We'll be posting articles, tutorials, videos and more on both sites in the days and weeks ahead. I'll also be posting some tutorials of my own here on my blog as well.
If you haven't already read them I'd also recommend checking out my previous
First Look at Silverlight 2 and
First Look at Expression Blend with Silverlight 2 blog posts that I wrote a few months ago when Beta1 shipped, since they provide a good overview of the Silverlight programming model and how to target it using both Visual Studio 2008 and Expression Blend.
Hope this helps,
Scott