Posts Tagged ‘data binding’

WTF Moment: Data Binding Errors in ListBoxes

January 30, 2008

Let’s say you have a ListBox that is data-bound to an ObservableCollection and set up similar to this:

Also, assume you’ve implemented sorting on your collection using the CollectionView representing your data bound items.
Can you guess what’s wrong?
When you sort the items (you’re really sorting UI elements representing your data), a data binding error occurs for [...]

WTF Moment: Data Binding Error

January 8, 2008

A few weeks ago, I was updating Jing’s splash screen because of some underyling classes that I refactored when I encountered an exception thrown in a MultiBindingConverter for trying to read DependencyProperty.UnsetValue as an enum.
The MultiBindingConverter was blowing up in XAML that looked similar to:

After a few hours of gnashing my teeth, and cursing under [...]