LetsBlogAbout.NET
Blogging about all that is .NET

Silverlight Beta2 Released

June 8, 2008 11:11 by joswalt

As Scott Guthrie mentioned, Silverlight 2 Beta2 was released today.  You can download both Silverlight 2 Beta2 and the Visual Studio and Expression Blend tools support to target it here.

Beta2 adds a lot of new features (more details below), but is still a 4.6 MB download that takes less than 10 seconds to install on a machine.  It does not require the .NET Framework or any other software to be installed for it to work, and all features work cross-browser on both Mac and Windows machines.  These features will also be supported on Linux via the Moonlight 2 release.

Silverlight 2 Beta2 supports a go-live license that allows you to start using and deploying Silverlight 2 for commercial applications. There will be some API changes between Beta2 and the final release, so you should expect that applications you write with Beta2 will need to make some updates when the final release comes out.  But we think that these changes will be straight-forward and relatively easy, and that you can begin planning and starting commercial projects now.

You can build Silverlight Beta2 applications using the VS 2008 Tools for Silverlight and Expression Blend 2.5 June Preview downloads.  You can download both of them here.  The VS 2008 Tools for Silverlight download works with both VS 2008 and the recent VS 2008 SP1 beta release. 

UI and Control Improvements

Silverlight 2 Beta2 includes a bunch of work in the UI and Control space:

More Built-in Controls

In Beta 1 only a few controls were included with the core Silverlight setup.  Most common controls (including Button, ListBox, Slider, etc) were shipped within separate assemblies that you had to bundle with your applications (which increased the app download size).  Beta 2 now installs 30+ of the most common controls as part of the core Silverlight 2 download.  This means that you can now build Silverlight 2 applications that use core controls that are as small as 3kb in size - making Silverlight application downloads small and startup time fast.

In addition to the core controls included with the base Silverlight 2 setup, we are also this week shipping additional higher-level controls that are implemented in separate assemblies that you can then reference and include with your applications.  This includes controls like DataGrid (more details on its new Beta2 features below), Calendar (now with multi-day selection and blackout date support in Beta2), and a TabPanel control (new in Beta2).

We ultimately expect to ship over a 100 controls for Silverlight.

Control Template Editing Support

One of the most powerful features of the WPF and Silverlight programming model is the ability to completely customize the look and feel of controls.  This allows developers and designers to sculpt the UI of controls in both subtle and dramatic ways, and enables a tremendous amount of flexibility.

This week's Expression Blend 2.5 June Preview now adds designer support for editing control templates - which makes it easy for you to quickly change the look of any control without having to drop-down to XAML source to-do it. 

Visual State Manager (VSM) Support

Control templates in Silverlight and WPF support customizing both the "look" of a control, as well as the "feel" of a control.  By "feel" I mean changing its interactive responsiveness.  For example: how it reacts when pushed, when it gets focus, loses focus, is in a pushed state, is in a disabled state, has something inside it selected, etc.  Often you want animations to execute when the user interacts with a control like this.

One of the new things we are introducing with Silverlight 2 Beta2 is a "Visual State Manager" (VSM) feature that makes it much easier to build interactive control templates.  VSM introduces two basic concepts that you can take advantage of within control templates: "Visual States" and "State Transitions".  For example, a control like Button defines multiple visual states for itself - "Normal", "MouseOver", "Pressed", "Disabled", "Focused", "Unfocused".   When in template editing mode in Blend, designers now have the ability to easily edit what the button looks like in each particular state, as well as setup transition rules to control how long it should take to animate when moving from one state to another.  At runtime Silverlight will then dynamically run the appropriate animation Storyboards to smoothly move the control from one state to another.

What is nice about this model is that designers do not need to write code, do not need to manually create animation storyboards, and do not need to understand the object model of controls in order to be productive.  This makes the learning curve for creating interactive control templates really easy, and means that existing graphic designers can very easily work on Silverlight projects.  Later this year we will also be adding Visual State Manager (VSM) support to WPF as well, which will let you use the same approach with Windows applications as well as share control templates between WPF and Silverlight projects.

To learn more about the new Visual State Manager and Control Template Editing features, please check out the tutorials here and here, and the videos on it here, here, and here.

TextBox

Beta2 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 Support

Beta2 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 System

Beta2 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.

DeepZoom

Beta2 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 Compatibility

Silverlight 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 Improvements

Silverlight 2 Beta2 includes some significant Media related feature work:

Adaptive Streaming

Beta2 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 Protection

Beta2 includes DRM content protection, and supports Windows DRM and PlayReady DRM.  Both work cross browser and cross platform.

Server Side Playlists

Beta2 adds support for server side playlists (previous releases only supported client-side playlists). 

Networking Improvements

Silverlight 2 Beta2 includes a bunch of work in the networking space:

Cross Domain Sockets

Beta2 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 Networking

Beta2 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 Services

Beta2 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 Services

Silverlight 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).

JSON

Silverlight 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 Improvements

Silverlight 2 Beta2 includes a bunch of work in the data space:

DataGrid

Beta2 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
     

DataBinding

Beta2 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 Storage

Silverlight 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 1

Silverlight 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.

Summary

To 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 Scott Guthrie's First Look at Silverlight 2 and First Look at Expression Blend with Silverlight 2 blog posts that he 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.

 


Comments

March 28. 2010 15:19

Jules Sadhu

This is a very exciting post, I was looking for this info. Just so you know I located your web site when I was browsing for blogs like mine, so please check out my site sometime and leave me a comment to let me know what you think.

Jules Sadhu

April 22. 2010 08:13

Hier

Thanks for taking this opportunity to talk about "LetsBlogAbout.NET | Silverlight Beta2 Released",  I benefit from learning about this topic. If possible, as you gain data, please update this blog with new information. Thanks, Hier

Hier

April 24. 2010 19:56

Haarentfernung

I have been reading a lot on here the topic LetsBlogAbout.NET | Silverlight Beta2 Released inspired me, i have picked up some  great ideas. Thanks and i hope to see more soon.

Haarentfernung

April 28. 2010 00:55

free proxy

Very interesting post...
<a href = "http://www.findproxy.ca">anonymous free proxy</a>&nbsp; &nbsp; <a href = "http://www.findproxy.ca">find proxy</a>

free proxy

June 2. 2010 20:45

Cassandra | Gaming PC

This is very interesting. Keep blogging the way you do Smile

Cassandra | Gaming PC

June 3. 2010 03:34

Custom Desktop

This is very interesting. I actually enjoy your writing style and your word choice more than anything Smile

Custom Desktop

June 4. 2010 22:57

Lynwood Rheinhardt

I have read a few of the articles on your website now, and I really like your style of blogging. I added it to my favorites webpage list and will be checking back soon. Please check out my site as well and let me know what you think.

Lynwood Rheinhardt

June 4. 2010 23:57

Julie

You get the Lynx alpha yet? I'm wondering if I should get it, wanted to see if anybody tried it first

Julie

June 16. 2010 05:10

Britt M Borden

You raise many questions in my head; you wrote a good post, but this post is also thought provoking, and I will have to think about it some more; I will return soon.

Britt M Borden

June 16. 2010 23:44

Jobs Food Science

This is my third visit to this blog. We are starting a brand new initiative in the same category as this blog. Your blog provided us with important information to work with. You have done a marvellous job.

Jobs Food Science

June 17. 2010 01:44

Rosendo Menden

I tried to get an RSS Feed to this article and I am not sure why, but it is not properly displaying in Google Chrome. Does anyone have any suggestions??

Rosendo Menden

June 25. 2010 23:39

Luigi Fulk

interesting!

Luigi Fulk

June 27. 2010 04:26

Matthew C. Kriner

is this your idea or somebody else idea?

Matthew C. Kriner

June 27. 2010 15:59

Andrew Pelt

can you let me know what template you use for this site?

Andrew Pelt

June 27. 2010 21:49

Matthew C. Kriner

nice blog, whandering what plaform are you using as this is not wordpress...

Matthew C. Kriner

June 28. 2010 00:47

Issac Maez

nice blog, whandering what plaform are you using as this is not wordpress...

Issac Maez

June 28. 2010 03:21

Andrew Pelt

are you using wordpress? This do not look like wordpress...

Andrew Pelt

June 28. 2010 17:27

mesothelioma claims

It is always conducive to distribute the innovative ideas with others on our demand.That is the main way for the people to know about the conducive types of techniques to equip it. It will really gives the crucial moments for others to know about it. It is a good passion for the people to select the conducive categories of the stories on the requirements of using it.

mesothelioma claims

July 2. 2010 02:27

Matthew C. Kriner

what blog platform are you using?

Matthew C. Kriner

July 4. 2010 03:31

Gregory Despain

are you using wordpress? This do not look like wordpress...

Gregory Despain

July 4. 2010 21:59

jobs in food science

Have you had problems with spammers?  I also use Blog Engine and I have some nice anti-spam practices; please Email me if you are interested in an exchange of ideas.

jobs in food science

July 5. 2010 02:44

Andrew Pelt

nice blog, whandering what plaform are you using as this is not wordpress...

Andrew Pelt

July 5. 2010 08:33

Dallas Cardello

silverlight silverlight silverlight Hello, You mark some fantastically remarkable blogs. I always check back here repeatedly to determine in case you have updated

Dallas Cardello

July 5. 2010 08:34

Barry Wekenborg

Marvelous! Not clear for me, how often you updating your site?

Barry Wekenborg

July 5. 2010 11:24

Brooke Rascon

This is good! How did you learn this stuff when you were a newcomer to it?

Brooke Rascon

July 6. 2010 03:07

Burton Haynes

what blog platform are you using?

Burton Haynes

July 6. 2010 22:41

Brooke Rascon

I was looking for information about this on Bing and came across your piece. I found it to be very useful. Thanks

Brooke Rascon

July 7. 2010 03:39

Andrew Pelt

what do you do to have so many people commenting on your blog? I never get more than one or two comments per post...

Andrew Pelt

July 8. 2010 01:50

Tyson F. Gautreaux

what do you do to have so many people commenting on your blog? I never get more than one or two comments per post...

Tyson F. Gautreaux

July 9. 2010 01:32

Shila Andreessen

I really appreciate this cool article. From there i get something I want to know. Thanks for the info.

Shila Andreessen

July 10. 2010 03:51

KimK

how can I sindicate your feed on my blog?

KimK

July 11. 2010 03:11

Hipolito M. Wiseman

interested to exchange links? I have a similar blog...

Hipolito M. Wiseman

July 11. 2010 10:27

salon insurance

Strange... I just stumbled on your site by searching for 'financial spreadbetting' on Google. But I don't see any posts about that subject on here?

salon insurance

July 13. 2010 01:41

Danna Schramek

I found a similar post on another web site and didn't see the point, but this article helped me understand it better. Thanks!

Danna Schramek

July 13. 2010 03:09

Issac Maez

Are you interested to make some invite posts on my blog?

Issac Maez

July 14. 2010 04:46

Gregory Despain

interesting...

Gregory Despain

July 16. 2010 01:39

Hipolito M. Wiseman

How do you manage to get so many comments on your blog?

Hipolito M. Wiseman

July 16. 2010 13:20

Jamar Craft

I am not really certain if greatest practices have emerged around things like that, but I'm sure that your excellent job is obviously identified. I was wondering should you offer any subscription to your RSS feeds as I will be very interested and may?t find any link to subscribe right here.

Jamar Craft

July 17. 2010 04:08

Matthew C. Kriner

it seams you have a very popular blog! congrats!

Matthew C. Kriner

July 18. 2010 03:20

Carroll B. Merriman

are you looking for writers for your blog?

Carroll B. Merriman

July 19. 2010 02:29

Carroll B. Merriman

I think I will have to blog about this as well...

Carroll B. Merriman

July 21. 2010 07:07

Blaine Solis

This is certainly a weblog that individuals need to get at the rear of.  The problem is, no one wants to complete an excellent deal of reading and not have some thing else to stimulate the thoughts.  This really is the web, right after all.  Maybe if you added a video or two to emphasise your point.  I'll stick around, for Sure|.  But, I dont know if other people will.

Blaine Solis

July 24. 2010 03:46

Andrew Pelt

what plugins are you using on your blog?

Andrew Pelt

July 25. 2010 08:33

Luigi Fulk

why are you not adding more revenue sources to your blog?

Luigi Fulk

July 25. 2010 16:37

flosser waterpik

Nice data, it helps me a lot. Actually I don’t need to combine my object-manipulation-methods, and now, I can use this method. Thank you for your data. Looking forward to reading your next piece of writing.

flosser waterpik

July 26. 2010 23:54

Matthew C. Kriner

how old is this blog?

Matthew C. Kriner

July 27. 2010 07:17

Luigi Fulk

I want to know your secret to have so many comments...

Luigi Fulk

July 28. 2010 06:19

Damien Burgess

Hi just thought i'd tell you something. This really is the 2nd time now i have landed on your weblog in the last 4 days hunting for totally unrelated points. Spooky or what?

Damien Burgess

July 28. 2010 21:24

plus size lingerie

I'll gear this review to 2 types of people: current Zune owners who are considering an upgrade, and people trying to decide between a Zune and an iPod. (There are other players worth considering out there, like the Sony Walkman X, but I hope this gives you enough info to make an informed decision of the Zune vs players other than the iPod line as well.)

plus size lingerie

July 29. 2010 20:30

Matthew C. Kriner

I have read about this on newspaper a few week ago...

Matthew C. Kriner

July 30. 2010 06:31

Hipolito M. Wiseman

you just got me a great idea to blog about...

Hipolito M. Wiseman

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading