Missing ObservableCollection (from T)

I am experimenting with WPF and MVVM and while coding the ViewModel on Vb.net I noticed these red wavy lines under my ObservableCollection (T) s T_T

Anyway, the app is in WPF and VB.Net, in .Net Framework 3.5 (I checked) and I have "Imports System.Collections.ObjectModel" on top of my class. Intellisense shows other classes in System.Collections.ObjectModel with the exception of ObservableCollection.

Here's a screenshot .

So why is ObservableCollection (of T) missing and how to do it? :( Thanks in advance.

+2


source to share


1 answer


You need to add a link to WindowsBase. Some elements in System.Collections live in mscorlib, but certain WPF functions like ObservableCollection live in WindowsBase.dll



Confused I know :-)

+5


source







All Articles