Monthly Archives: April 2010

Silverlight 4 still displays large elements incorrectly

I’ve ran into the issue of Silverlight displaying large elements incorrectly in version 3. After reporting the issue on the official Silverlight forums it’s turned out that it’s a known issue that Silverlight renders elements larger than 32K incorrectly.

After Silverlight 4 released I was hoping that this issue is fixed. However, I was disappointed to see that it still exists. My problem with this bug is that I’m working on a charting application that supports zooming. The easiest way to do this applying RenderTransforms and ScaleTransforms to the elements plotted. However due to this bug zooming is limited until the zoomed element size is 32K – this sets a practical limit of about 70-150x zoom (based on the original element size) which in my case is a serious limitation.
Read More…

Detecting Silverlight Version Installed

Detecting the Silverlight version installed on a client machine isn’t entirely straightforward. To do so, one has to use Javascript. Unfortunately even though Microsoft ships a Silverlight.js in the Silverlight SDK, this script only has the ability to tell whether a specific version is supported on the client’s machine; it does not support returning the installed version.

For this reason I have created a simple Javascript function returning the Silverlight version number installed on the client machine or returning -1 if Silverlight is not installed. The source code can be downloaded from here:
SilverlightVersion.js
The script can be used the following way:

var slVersion = GetSilverlightVersion();
if(slVersion != -1)
   document.writeln("Your Silverlight version is: <strong>" +slVersion + "</strong>" );
else
   document.writeln("<strong>Your do not have Silverlight installed on this computer</strong>");

And this is the script in action:

If you’re interested in how the script actually works and what the Silverlight version numbers mean, read the post on my ScottLogic blog: Determining Silverlight Version Installed – source code & explanation

Invited to the Kairos Society Global Summit!

It has been a great honour that I a month and a half ago I have been invited to become a member of the Kairos Society and also attend their annual summit mid April this year.

kairossociety

Kairos Society is an invite-only foundation aimed to unite the world’s brightest young minds. Each year they hold a global summit where some of the most influential leaders are brought together with a select group of the world’s most innovative and entrepreneurial students. As part of the summit the 100 most innovative student projects are exhibited – I’ll also be one of the exhibitors as participant in the Green Watering Project.
Read More…

Ten Cool Visual Studio 2010 Features

I’ve attended an event late March in Glasgow where Scott Guthrie, Microsoft vice president showed off some of the new fewatures of Visual Studio 2010. Based on this talk and my experience using Visual Studio 2010 Beta 2 and the Release Candidate I’ve collected the ten most useful new features of this edition. These are:

  • Pinning variables when debugging
  • Box selection
  • On-the-fly search
  • Zooming
  • View call hierarchy
  • Sequence diagrams
  • Dependency graphs
  • IntelliTrace and dump debugging
  • Multi-monitor support
  • Intellisense improvements

For a detailed description of each of these features read my blog post Ten Cool Things You Didn’t Know About Visual Studio at my Scott Logic blog.

 Scroll to top