Tag Archives: silverlight

Silverlight unit testing with NUnit: yes you can (without hacks)!

It may be obvious for most of you, but it took a while to my caveman brain to realize this, so I figured I could post it for other cavemen. You (we) have got an excuse though: the short release cycle of Silverlight means that most stackoverflow questions and blog posts on the subject are [...]

An error occurred while accessing IsolatedStorage.

While developing a Silverlight Windows Phone 7 app I ran into this problem: when the application closes, an internal  IsolatedStorageException is raised: An error occurred while accessing IsolatedStorage. at System.IO.IsolatedStorage.IsolatedStorageSecurityState.EnsureState()    at System.IO.IsolatedStorage.IsolatedStorageFile.get_AvailableFreeSpace()    at System.IO.IsolatedStorage.IsolatedStorageSettings.Save()    at System.IO.IsolatedStorage.IsolatedStorageSettings.TrySave()    at System.IO.IsolatedStorage.IsolatedStorageSettings.SaveAllSettings()    at MS.Internal.FrameworkCallbacks.ShutdownAllPeers() IsolatedStorageSettings seemed to be the cause of the problem. Very [...]

Best of Swiss Silverlight 2010

During this year’s Shape 2010 conference in Zurich-Oerlikon, Microsoft Switzerland announced the winners of the Best of Swiss Silverlight 2010 Award in collaboration with the Best of Swiss Web Association, simsa and Netzwoche. Incredibly my application Trails of Switzerland won the Bronze award. I was completely taken by surprise (not to mention super excited) because [...]

Silverlight: web service calls fail when OOB

Situation: your Silverlight 3 application is calling a web service and while it works fine in the browser, it miserably fails in out of the browser mode (OOB). Don’t panic. It seems that you cannot call a webservice (in App.xaml.cs) before having assigned the application’s root visual. As mentioned, this is not a problem when [...]

Silverlight/WPF RGB color in c#

Sometimes you have a color in XAML and want to use it in c#. In other words you want to translate something like: <Border Background=“#AA0FCC1B”>; to: Border.Background = …something… So you start looking for an IValueConverter that create a color from a RGB string, or translate the hex values to decimal, etc… STOP it! All [...]

WPF is dead. Long live WPF!

Some months ago I read in a blog post that Silverlight ate WPF from the inside. I had a good laugh and thought it was the most foolish thing I’ve read in a while. I even posted a comment that (thankfully) never got published. Having worked extensively with both WPF and Silverlight I thought the [...]