Updating samples to Silverlight 2 Beta 2
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);

Tagged as 

June 6th, 2008 at 11:58 pm
[...] 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 … [...]
June 10th, 2008 at 4:27 pm
You have been agglom(erated):
http://www.agglom.com/agglom/9