Excellent Silverlight 4 sample application showing MVVM, MEF etc.

Remember to unblock all the DLLs otherwise you’ll struggle to compile the source…


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


“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”

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.

        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:


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.

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

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