×

First time here?

You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting!

Each release of Silverlight it is the goal to make sure existing Silverlight applications continue to work.  Since I think what this means causes some confusion I’m going to do my best to explain what we mean by this.

Silverlight 3 application working with Silverlight 4

Okay, scenario 1 is I have a Silverlight 3 application (XAP), will that still work as-is in Silverlight 4? 

Yes, this is the situation we refer to as backward compatibility.  What this means is that existing compiled XAPs under previous versions should continue to work as-is even if your users have a later version of Silverlight installed on their machine. 

An example would be someone like Netflix.  If you are already a Netflix instant watch user with their Silverlight application, then you’ve been watching movies fine on your computer for a while.  If you go and download Silverlight 4 today, this should not change, even though their player is Silverlight 3.  From the docs:

The Silverlight team wanted to fix a number of Silverlight 3 bugs in Silverlight 4. However, by fixing some of these bugs, it is possible that some existing Silverlight 3 applications would break. In order to avoid this, the Silverlight team addressed these potentially problematic changes by creating a "quirks mode" for runtime behavior. A quirks mode change is a case where the Silverlight 4 runtime will branch its behavior if the runtime detects that the application is targeting Silverlight 3. In this way, Silverlight 4 is made "bug compatible" as a runtime. However, the noted quirks mode behavior may need to be revisited if you recompile your application for Silverlight 4.

The above scenario (previous version Silverlight apps running under their version mode) is often referred to as “quirks mode.”

Silverlight 3 CODE recompiled as Silverlight 4 app

Next scenario is I opened my Silverlight 3 code project and compiled as Silverlight 4 and now it doesn’t work!?  You said backward compatible!!!

This is where breaking changes come into play.  Breaking changes range from anything from security fixes to bug fixes to correcting behavior that we wanted to change.  We try at all costs to avoid breaking changes, but sometimes they are unavoidable to progress and make things right.  When we can’t avoid them, we do our best to ensure that quirks mode (described above) works as customers expect.

For Silverlight 4, there are some breaking changes from 3->4 that developers should be aware of.  These are all documented on MSDN here.  Here is a point list of a few of them:

  • XAML Parsing AmbiguousMatchException when application property conflicts with new Silverlight 4 property
  • Toggling full screen mode reruns hit testing
  • Shared BitmapImage resources
  • DRM on cients with FAT32

The document explains the scenarios as well as what to do, if applicable. 

Hopefully this helps understand a few things.  If you find that your compiled Silverlight 3 XAP is not running correctly when rendered in a Silverlight 4 plugin environment, please let us know on the forums with as much detail as possible (i.e., “it doesn’t work” isn’t enough).



This work is licensed under a Creative Commons Attribution By license.



DISCLAIMER:

The opinions/content expressed on this blog are provided "ASIS" with no warranties and are my own personal opinions/content (unless otherwise noted) and do not represent my employer's view in any way.
{"cc_re__cc_re__cc_by_3_0": ["\">silverlight</a>, <a href=\"http://timheuer.com/blog/tags/xaml/default.aspx\" rel=\"tag\">xaml</a>, <a href=\"http://timheuer.com/blog/tags/wpf/default.aspx\" rel=\"tag\">wpf</a>, <a href=\"http://timheuer.com/blog/tags/riaservices/default.aspx\" rel=\"tag\">riaservices</a>, <a href=\"http://timheuer.com/blog/tags/ria/default.aspx\" rel=\"tag\">ria</a></span></div>   <br /><div class=\"wlWriterHeaderFooter\" style=\"margin:0px; padding:0px 0px 0px 0px;\"><hr /><div class=\"cc-license\">This work is licensed under a <a href=\"http://creativecommons.org/licenses/by/3.0/\">Creative Commons Attribution By license.</a></div></div>\r\n                <p class=\"under\"></p>\r\n            </div>\r\n        </div>\r\n        \r\n<div class=\"alert alert-info\" style=\"text-align:center; margin-left:auto;margin-right:auto\">\r\n    <i class=\"icon-arrow-left\"></i>&nbsp;&nbsp;<a id=\"ctl05_PreviousNext2_PrevLink\" title=\"previous post\" class=\"older\" href=\"/blog/archive/2010/04/15/silverlight-client-for-facebook-updated-for-silverlight-4-release.aspx\">Silverlight Client for Facebook updated "]}