Windows Vista Forums

Where is ObservableCollection???
  1. #1


    Todd Beaulieu Guest

    Where is ObservableCollection???

    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!

      My System SpecsSystem Spec

  2. #2


    Jon Skeet [C# MVP] Guest

    Re: Where is ObservableCollection???

    Todd Beaulieu <ToddBeaulieu@xxxxxx> wrote:

    > 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?

    --
    Jon Skeet - <skeet@xxxxxx>
    http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
    World class .NET training in the UK: http://iterativetraining.co.uk

      My System SpecsSystem Spec

  3. #3


    Todd Beaulieu Guest

    Re: Where is ObservableCollection???

    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!

    "Jon Skeet [C# MVP]" wrote:

    > Have you got a reference to WindowsBase.dll?
    >

      My System SpecsSystem Spec

  4. #4


    Mahendra Gurav Guest

    Re: Where is ObservableCollection???



    hi I also not getting ObservableCollection in
    System.Collections.ObjectModel

    Please give solution

    Thanks
    Mahendra


    *** Sent via Developersdex http://www.developersdex.com ***

      My System SpecsSystem Spec

  5. #5


    Brian Gideon Guest

    Re: Where is ObservableCollection???

    On Aug 8, 5:35*am, Mahendra Gurav <mahendra.gu...@xxxxxx> wrote:

    > hi I also not getting ObservableCollection in
    > System.Collections.ObjectModel
    >
    > Please give solution
    >
    > Thanks
    > Mahendra
    >
    > *** Sent via Developersdexhttp://www.developersdex.com***
    Which version of the framework are you using?

      My System SpecsSystem Spec

Where is ObservableCollection??? problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: ObservableCollection<T> Morten Wennevik [C# MVP] .NET General 0 08 May 2009