WPFToolkit compatibility with PresentationFramework?

Apr 23, 2009 at 7:57 PM
I'm getting an error whenever I refer to a DataGrid in a XAML. XAML header contains lines

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit"

the referring line is like

<toolkit:DataGrid x:Name="dg1" Width="200" />

and the compiler says:

errors in directory c:\program
c:\program\10>c:\program\subdir1\file1.xaml(9,14) : error MC1000: Unknown build error, 'Could not load type 'System.
Windows.Controls.Primitives.MultiSelector' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Line 9 Position 14.'

The error goes away as soon as I comment out the DataGrid reference (the only reference to
WPFToolkit library).
Apr 23, 2009 at 10:10 PM
And I do believe I have .NET 3.0 SP 1 on my machine.
Coordinator
Apr 23, 2009 at 10:36 PM
Check your .csproj file.  Are you targeting .net 3.5? 
Apr 23, 2009 at 10:37 PM
Sorry, I meant I do believe I have .NET 3.5 SP 1 on my machine. AFAIK, WPFToolkit requires that.
Coordinator
Apr 23, 2009 at 11:48 PM
What I'm asking is actually different.  You can have 3.5 sp1 on your machine but target a different version of the framework.