Nov 6

Written by: Soul Solutions
Tuesday, 6 November 2007 

BronwenWeeGo.jpgI wanted to use ObservableCollection for databinding in WPF cause it handles all the nofications of list changes and generally is just cool.

The problem i had was I had my objects in a different project..a dll and I couldn't access the ObservableCollection object.  It worked if I was in a WPF project though.

My problem was essentially that I didn't read the object definition in MSDN very well cause it clearly states it's in the WindowsBase directory!

So if you're having this problem..you can't find ObservableCollectioin...just include WindowsBase.dll in the project references.

Obviously I kicked myself when I realised the error of my ways..but hey..it's a bit confusing to be using System.Collections.ObjectModel AND have to include WindowsBase to access the class..well I thought it was.

 

kick it on DotNetKicks.com

Tags:

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
Copyright © 2002-2013 Soul Solutions Pty Ltd. | Login