Sunday, November 21, 2010

Numpty Silverlight DataBinding continues....

So if you are doing Silverlight or WPF and you're trying to do MVVM... and you sit there wondering why your ObservableCollection<T> just isn't working...

... then consider it might just be....

... because you are an idiot and you declared your code:

public ObservableCollection MyCollection;

when it should of course have been...

public ObservableCollection MyCollection {get;set;}

Arggggggggggggggh! Serves me right for coding on Sunday night! 

No comments:

Post a Comment