Posts Tagged with update

Silverlight 2 Beta 2 Hotfix released

Last night Microsoft released a Hotfix for Silverlight 2 Beta 2.  The update is just over 6.4MB and is said to include fixes for the following:

This update for Microsoft Silverlight 2 includes stability, media streaming, and auto-update improvements as well as improved support for Firefox 3.

Here is a link to a full description of the update.

Updating samples to Silverlight 2 Beta 2

It took a bit of time, but I got most of my recent samples updated to the latest bits. In most cases it required opening the solution and allowing VS2008 to fix a few things automatically, than a recompile to generate an updated .xap file.

Issue #1

All of my samples are loaded into a page via an IFRAME and a static html page. As a result, I had to change the following to target the new mime type.

Issue #2

Another place that a few of my samples imploded was situations where I was building up a Storyboard procedurally, and targeting a specific dependency property.  Beta 2 now uses a custom object called “PropertyPath”
Beta 1

Storyboard.SetTargetProperty(daX, "(ScaleX)")

Beta 2

Storyboard.SetTargetProperty(daX, new PropertyPath("(ScaleX)"))

Issue #3

A third place that caused an issue was the setting of a value for a Dependency Property. In Beta 1 I was forced to convert the value to a string regardless of the properties data type. Beta 2 now enforces strong data typing at execution time (Compiling had no issue since “SetValue” takes an object)

Beta 1

tile.SetValue(Grid.ColumnProperty, col.ToString())

Beta 2

tile.SetValue(Grid.ColumnProperty, col)