Simon's profileSimon Ransom's spacePhotosBlogLists Tools Help
Photo 1 of 14
More albums (1)

Simon Ransom's space

March 07

Silverlight 2.0 Beta 1 released

Whoohoo

http://www.microsoft.com/silverlight/resources/installationfiles.aspx?v=2.0

Unfortunately it doesn't come with a commercial go-live license (although you can try and apply for one).

March 05

CSS: Overflow:hidden and position:relative

While writing an Ajax app that was supposed to collapse rows I came across this age old IE bug where the text on the cells I was laying out had relative positioning but were not cropped by the overflow hidden on their containing div.

I found this page useful

http://www.brunildo.org/test/OverflowR.html

But what actually fixed it was simply adding position:relative onto the div that had the overflow:hidden.

February 26

EnableRedrawRegions

I haven't seen many performance problems but if I do, this looks like a useful tip:

http://blogs.msdn.com/seema/archive/2007/10/07/perf-debugging-tips-enableredrawregions-a-performance-bug-in-videobrush.aspx

"For Perf debugging, a way to tell when you are causing a redraw is to turn on the control's EnableRedrawRegions property.

agControl.settings.EnableRedrawRegions = true;

With this feature on, when a section of the plugin causes a draw, that section will draw in a different color. This setting is not for those susceptible to seizures =P"

February 08

Visio to Xaml converter

Wow - just spotted this:

"I was excited to see VisioExportToXaml on Codeplex from Saveen Reddy (with credits to Thierry Bouquain and SharpVectors). "

 
January 29

Silverlight 1.1 Alpha Refresh cannot use the inplaceInstallPrompt

I hope someone finds this useful (at least until 2.0 Beta which I reckon will be out by Mix '08 in March), the Silverlight 1.1 Alpha Refresh does not appear to be able to use the "inplaceInstallPrompt" property.

    Silverlight.createObjectEx({
        source: "Page.xaml",
        parentElement: document.getElementById("SilverlightControlHost"),
        id: controlID,
        properties: {
            width: "500",
            height: "500",
            version: "1.1",
            enableHtmlAccess: "true",
            inplaceInstallPrompt:true // <-- does not work
        },
        
        events: {onLoad: OnLoaded}
    });

Looking at the Silverlight.js, it overrides the setting by doing the following:

if(g.shortVer=="1.1")g.inplaceInstallPrompt=false

I was surprised not to find any articles on the web about this but there are a lot of misleading posts like this one (which not only suggests that it works but wraps the true as a string which doesn't work in 1.0).

Also to get around my issue that createHostedObjectEx points to the wrong version of Silverlight (rumours are this will be fixed by MIX '08), I simply used javascript to redirect to another html page that was a cut-down version of my main page. It still loaded the same application but in the Silverlight onLoad it executed some more javascript to go back to the main page.

January 14

Could not load file or assembly 'System.Data.DataSetExtensions, Version=2.0.0.0, ...

After upgrading from Visual Studio 2008 beta 2 to the RTM I got the following error:

Could not load file or assembly 'System.Data.DataSetExtensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

Daniel Moth already figured this out last year.

January 09

Silverlight expiry August/November 2007

According to the current Terms and Conditions for the September 1.1 Alpha refresh, they will expire on 1st August (Mac) and 1st November (PC) 2007. This is not true, I posted this question (via my psuedonym LittleClive :-)) to http://silverlight.net/forums/p/8248/25757.aspx#25757
 
December 20

Uploading photos to Photobox

I'm not trying to make money from my photos but wanted to give friends and family the opportunity to order photos if they wanted to so I've used the photobox FTP interface, a bespoke windows service, .NET remoting to retrieve the current upload status and a webservice to expose all this to the Silverlight app.

Here are some screenshots of the current ordering process:

clip_image001 clip_image002

Silverlight 1.1 is now Silverlight 2.0!

It's official, Silverlight 1.1 is being rebranded 2.0 with a beta being released in Q1 of 2008. According to Scott Guthrie this will come with a Go-Live license that "enables developers to begin building and deploying Silverlight 2.0 applications".

December 06

Album art rendered in 3d

My app uses the Amazon web-services to search for album art and then uses POV-ray to create a 3D rendering of a "real" CD. This is then shown when music is selected from the menus. Track listings show up and disappear when the mouse is over this image. Example is shown below:

image

 

My Guitar Experiements