Where is ObservableCollection???

  • Thread starter Thread starter Todd Beaulieu
  • Start date Start date
T

Todd Beaulieu

I'm stumped. I'm working with the 3.5 runtime in VS 2008. I've added "using
System.Collections.ObjectModel". ObservableCollection is not known. In fact,
if I type "System.Collection.ObjectModel." the intellisense only lists
Collection<>, ReadOnlyCollection<> and KeyedCollection<>. In the object
browser, I find ObservableCollection under "WindowsBase", and it's listed as
ObservableCollection. How can I make use of this class so I can bind a WPF
element to my custom Object?

Thank you!
 
Todd Beaulieu said:
I'm stumped. I'm working with the 3.5 runtime in VS 2008. I've added "using
System.Collections.ObjectModel". ObservableCollection is not known. In fact,
if I type "System.Collection.ObjectModel." the intellisense only lists
Collection<>, ReadOnlyCollection<> and KeyedCollection<>. In the object
browser, I find ObservableCollection under "WindowsBase", and it's listed as
ObservableCollection. How can I make use of this class so I can bind a WPF
element to my custom Object?

Have you got a reference to WindowsBase.dll?
 
DOH!

I assumed something called WindowsBase would be ... you know... part of the
base framework and thus automatically referenced. Silly assumption, I guess.

Thanks, Jon!
 
hi I also not getting ObservableCollection in
System.Collections.ObjectModel

Please give solution

Thanks
Mahendra
 
Back
Top