gpt4 book ai didi

c# - 使用 .NET 3.5 SP1 替代 WPF DataGrid

转载 作者:行者123 更新时间:2023-11-30 20:11:57 26 4
gpt4 key购买 nike

我正在 VS 2008/.NET 3.5 SP1 中使用 C# 构建 WPF 应用程序。我正在尝试使用 DataGrid 控件,但是当我在 XAML View 中创建它时,XML 验证器提示找不到类型。此外,IntelliSense 列表不显示 DataGrid 的选项。

根据文档,似乎直到 .NET 4.0 才支持此控件: http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.aspx

如何在 .NET 3.5 SP1 中创建类似的控件?

最佳答案

您可以使用适用于 .net 3.5 的 WPF 工具包中的相同 DataGrid http://wpf.codeplex.com/releases/view/29117.net 4.0 中包含相同的控件

您也可以使用 ListView 控件。它提供类似于 DataGrid 的基本功能。对于简单的场景可能没问题。

关于c# - 使用 .NET 3.5 SP1 替代 WPF DataGrid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3124551/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com