无法从程序集PresentationFramework加载类型“System.Windows.Controls.Primitives.MultiSelector”

5 wpf xaml datagrid wpftoolkit

我正在尝试使用 WPFToolkit 中的网格,但收到错误:

DisplayDataMapping.xaml (9,89):
    errorMC1000: 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 89.' 
Run Code Online (Sandbox Code Playgroud)

这是 xaml:

    <UserControl x:Class="显示数据映射"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit">
        <StackPanel边距=“10”>
            <Border CornerRadius =“5”BorderThickness =“1”填充=“5”BorderBrush =“WhiteSmoke”>
                <工具包:DataGrid x:名称=“dataGridPostings”背景=“透明”
                            AlternatingRowBackground="LightSteelBlue" RowBackground="白色"
                            GridLinesVisibility="无" Horizo​​ntalGridLinesBrush="SlateGray">
                </工具包:数据网格>
            </边框>
        </堆栈面板>
    </用户控制>
    

Ale*_*zik 2

WPF 工具包依赖于 .NET Framework 3.5 SP1(以防万一您还不知道)。