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


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=, 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.
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.
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.