System.ComponentModel Namespace?

1133
3
12-29-2010 07:10 AM
AndrewHargreaves
Occasional Contributor II
Hi All,
I�??m attempting to use this tutorial to sort a combobox�??s contents thru XAML :

http://msdn.microsoft.com/en-us/library/ms742542(v=VS.100).aspx

it requires mapping to "clr-namespace:System.ComponentModel;assembly=WindowsBase" and "clr-namespace:System.Windows.Data;assembly=PresentationFramework".
I can find both WindowsBase.dll and PresentationFramework.dll but these are the ones build against .NET and so won�??t work with Silverlight. I don't appear to have a Siliverlight one in my reference assemblies.  Anyone got any bright ideas?

thanks
0 Kudos
3 Replies
AliMirzabeigi
New Contributor
Try and use "clr-namespace:System.ComponentModel;assembly=System.Windows" instead.
0 Kudos
AndrewHargreaves
Occasional Contributor II
That worked, however now I get the same problem with "clr-namespace:System.Windows.Data;assembly=PresentationFramework"

Any more advice?

thanks
0 Kudos
AliMirzabeigi
New Contributor
Sorry, I forgot to mention that they are both in System.Windows namespace, i.e. the XML namespaces should be defined as the following:

xmlns:scm="clr-namespace:System.ComponentModel;assembly=System.Windows"
xmlns:dat="clr-namespace:System.Windows.Data;assembly=System.Windows"
0 Kudos