Mike Ormond's Blog

Musings on mobile development and Windows Phone 7 in particular.

Moving to Silverlight 1.1 Alpha Refresh - A Quick Checklist

Moving to Silverlight 1.1 Alpha Refresh - A Quick Checklist

  • Comments 6

Here are a few things you'll have to change in your Silverlight 1.1 apps to get them working with the 1.1 Alpha Refresh:

  • Replace the current Silverlight.js file with the new one from the SDK ***
  • Change any references to Sys.Silverlight.* namespace (like, for example, the one in the createSilverlight() function in *.html.js) to be just Silverlight.*
  • enableHtmlAccess in createSilverlight() is now a string so should read enableHtmlAccess: "true" (rather than enableHtmlAccess: true)
  • if you use the "javascript:" prefix in your XAML to refer to an unmanaged (JavaScript) eventhandler you'll need to change it. That syntax is no longer valid
  • If you have any URLs with "\" instead of "/", you'll need to change them to "/"
  • And Mike has already blogged about the fact that you need to give all your resources a name
  • There is of course a complete list of changes in the SDK

Get the SDK here: Microsoft Silverlight 1.1 Software Development Kit Alpha Refresh 

*** Note, as Jack Bond (thanks Jack) pointed out in the comments to this post, there seems to be a problem with the Silverlight.js file shipping with the 1.1 Alpha Refresh SDK pointing people to the 1.0 Silverlight plug-in. See the comments in this post for more details.

Technorati Tags:
  • PingBack from http://msdnrss.thecoderblogs.com/2007/08/06/moving-to-silverlight-11-alpha-refresh-a-quick-checklist/

  • When are we going to get native textboxes, comboboxes and the like so that Silverlight becomes useful to actually do something instead of just show pretty pictures that move?

    The opportunity for Silverlight is to fulfill the web 2.0 promise and provide a rich user experience for interactive data driven applications via the internet with zero client footprint, but so far it's like the people at MS haven't even realized what they have on their hands and where it's true power is. (i.e. no System.Data namespace!)

  • John

    We're committed to shipping a set of controls with Silverlight 1.1 they're just not in the Alpha. See http://blogs.msdn.com/tims/archive/2007/06/22/some-great-silverlight-controls.aspx for more details. You can still do a lot of great stuff, and there is a control model there. But I'll grant you it's hard work at the moment as the onus is on you to provide most of the plumbing and layout.

  • Unless the 1.1 sdk has been updated, the silverlight.js file it contains is for v1.0. We needed to pull the 1.1 silverlight.js from the airline demo. http://silverlight.net/forums/p/3106/8762.aspx#8762 details the full problem.

  • Thanks Jack! That explains a behaviour we saw earlier today when sharing an app we're building with some folks who got into a "Get Silverlight" loop. Mike

  • No problem, we're kind of surprised Microsoft hasn't updated the SDK by now. You might want to update bullet #1, in case someone doesn't look at the comments.

Page 1 of 1 (6 items)