I want to use the ObservableCollection class in Net 4.5 using the xaml.
This is how I specify the namespace in the xaml:
xmlns:coll="clr-namespace:System.Collections.ObjectModel;assembly=System"
And the collection declaration is like this:
<ic:MyControl.Resources>
<coll:ObservableCollection x:TypeArguments="commands:Command" x:Key="CommandCollection"/>
</ic:MyControl.Resources>
I get this compile error:
The tag 'ObservableCollection' does not exist in XML namespace 'clr-namespace:System.Collections.ObjectModel;assembly=System'.
I think the assembly name may be incorrect, but a search on forums here said it is the System assembly. Can anyone tell me what's going wrong?