Updating samples to Silverlight 2 Beta 2

Date June 6, 2008 @ 11:27 pm in Microsoft, Silverlight

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);

/p>

2 Responses to “Updating samples to Silverlight 2 Beta 2”

  1. 2 Static » Blog Archive » Updating samples to Silverlight 2 Beta 2 said:

    [...] Updating samples to Silverlight 2 Beta 2 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. Another place that a few of my samples imploded was situations where I was building … [...]

  2. bluedesigner said:

    You have been agglom(erated):
    http://www.agglom.com/agglom/9

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">