wpf - 无法从程序集 PresentationFramework 加载类型 'System.Windows.Controls.Primitives.MultiSelector'

标签 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.' 

这是xaml:
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">


AlternatingRowBackground="LightSteelBlue"RowBackground="白色"
GridLinesVisibility="None"Horizo​​ntalGridLinesBrush="SlateGray">



最佳答案

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

关于wpf - 无法从程序集 PresentationFramework 加载类型 'System.Windows.Controls.Primitives.MultiSelector',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/241236/

相关文章:

c# - 使用 DataTemplate 时网格不会填充可用空间

c# - BackgroundWorker 线程必须是 STA

c# - 查找放置在 ListView Wpf 中的控件

wpf - 在 WPF 中更新 ObservableCollection 会导致屏幕闪烁;我该如何预防?

Javascript/JQuery Datagrid 在数据表中显示/编辑/输入

c# - 防止 FileSystemWatcher 在调用 Shutdown() 时抛出 TaskCanceledException

c# - 如何绑定(bind)到控件的文字实际宽度(包括其边距)?

.net - 没有生成 WPF .g.cs 文件?

c# - 调试 Visual Studio 设计器

xaml - Xamarin 表单按钮没有边框问题