Blog Archives

Where did the blue balls go?

In which Christian asks himself where the Silverlight loading animation went, and has some severe debugging to do. … and then there is that project where the XAP for a Silverlight application is dynamically created on the server. There are

Tagged with: , ,
Posted in Coding

PRISM event aggregator: more leaky than it seems

Gotcha of the day: the Prism framework for WPF and Silverlight offers an application-wide event bus system that allows you to publish and subscribe events without having to have a reference to the publisher. This is hugely useful for decoupling

Tagged with: ,
Posted in Coding

NUnit for Silverlight updated: NUnit 2.5.5, Silverlight 4

Christian’s updated NUnit for Silverlight to NUNit 2.5.5 and Silverlight 4.

Tagged with: ,
Posted in Coding, Testing

Detecting a changed DataContext

A colleague showed me a great and simple solution for a problem: finding out when the DataContext of a Silverlight control changes. Let’s say a details form is bound against a Dog object. To the left of the form there

Tagged with:
Posted in Coding

On Labels and Triggers

Christian talks about behavior of forms, setting the focus on Silverlight controls, and has some raised eyebrows on Silverlight triggers.

Tagged with: , ,
Posted in Coding

DependencyProperty initialization gotcha

There’s something wrong here: We’ve got a class with a list of strings as a property. Because we want to set the property in XAML, use data binding, and all the goodness, we use a DependencyProperty to store it. Looks

Tagged with:
Posted in Coding

Running NUnit 2.53 tests for Silverlight

Jeff Wilcox has described in this article how to make NUnit tests run in the Silverlight unit testing framework. That article provides all the groundwork for what you need to do: Compile a version of the NUnit framework that runs

Tagged with: , , ,
Posted in Coding, Testing

What is Silverlight trying to tell you?

This is what I spent the last hour with: When building your Silverlight project fails with the error message “Whitespace is not allowed after end of Markup Extension.”, you’ve got a blank (or more) behind a databinding expression, like here:

Tagged with: , ,
Posted in Coding

Magically dispatching asynchronous method calls

One of the things I like less about Silverlight is the visibility of its Threading limitations code that has nothing to do with explicit threading. I think that explicitly handling the threads and everything attached is something that you should

Tagged with: , , , ,
Posted in Coding

My new favourite Silverlight Panel

In a SIlverlight app I’m building I needed a panel that can display items in a given sort order that is less strict than the row index of a Grid. If multiple elements share the same sort order, fine, the

Tagged with:
Posted in Coding
Follow

Get every new post delivered to your Inbox.