i know i posted earlier with a pointer to the preview sdk over in sneathville, but i walked through the docs this morning and just wanted to re-iterate the need to look at the breaking changes document included in the preview sdk. why? because when i look at the numerous samples i see that some are likely to be affected. wouldn't you want your sample to run when the release candidate is put in the wild? i would.
breaking changes...ugh...they suck. but bear in mind this is beta and we knew there could be some. in looking through the docs, i wanted to highlight some that i felt were more common. the docs do a good job of discussing the change, and showing before/after code.
anyhow, here's my list:
note this applies to if you are coding your even handlers in your xaml like this:
probably going to affect everyone. instead of Sys.Silverlight.foofunction() you'll need to remove the Sys. prefixer here. quite simply, the namespace "Sys." was removed in the RC.
using the downloader object
one of my favorite little objects in silverlight. in the beta bits, there was a third param in the creation that enabled you to choose whether the downloader would perform async or not. that param is now removed...all downloads are async. the sdk doc describes a method you can do to trick out the beta bits, but note that the third param is no longer there.
downloader.open("get", file, true)
visibility:hidden is now visibility:collapsed
um, it couldn't be explained any simpler. hidden and collapsed meant the same thing, so we picked one and kept it consistent...hidden is no longer...use collapsed.
elements in Resources node must be named
good practice anyway that should have been followed, but if you are creating resource storyboards, etc. then you need to name them using the x:Name attribute. this applies to anything in <Canvas.Resources>
AddEventListener returns a token for RemoveEventListener
basically if you were using removeEventListener before, you'd specify the object and the event handler function. now, you have to pass a pointer to the token. so when you add an event listener, you'll get a token as an object return. you'll then use *that* in the remove command instead of the function name. something like this:
var enterToken = myObj.addEventListener(“MouseEnter”, myEnterHandler);
version property in plug-in creation is obsolete
instead, use isVersionSupported instead. this is what the new silverlight.js file looks for (note: the new silverlight.js file is also located in the preview SDK).
so there are my key highlights. there are more, and you really should download the preview sdk and read the docs. prepare yourself. prepare your samples (myself included, i need to find the time to go back, but i'd imagine your samples are much more important). get ready for RC baby!