WPF: Xaml, create an observable collection<object> in xaml in Dot Net 4.0

Posted by Aran Mulholland on Stack Overflow See other posts from Stack Overflow or by Aran Mulholland
Published on 2010-04-23T02:35:54Z Indexed on 2010/04/23 2:43 UTC
Read the original article Hit count: 965

the web site says you can in dot net 4.0

I cant seem to do it though, what assesmbly references and xmlns' do i need

the following does not work

xmlns:coll="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"

<coll:ObservableCollection x:TypeArguments="x:Object">
    <MenuItem Command="ApplicationCommands.Cut"/>
    <MenuItem Command="ApplicationCommands.Copy"/>
    <MenuItem Command="ApplicationCommands.Paste"/>
</coll:ObservableCollection>

© Stack Overflow or respective owner

Related posts about wpf

Related posts about xaml