WPF: Xaml, create an observable collection<object> in xaml in .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/05/09
4:38 UTC
Read the original article
Hit count: 946
the web site says you can in .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