WPF 工具包 Datagrid with .Net 3.5 no sp1

发布于 2024-07-13 09:03:06 字数 633 浏览 5 评论 0原文

我一直在尝试在我公司内部部署的 WPF 应用程序中使用 WPF 工具包,但该工具包需要 .Net 3.5 sp1。 该工具包的 sp0 和 sp1 之间的唯一区别是 DataGrid 使用的 MultiSelector 类。

我的问题是,有谁知道解决方法,这样就不需要 sp1 了吗? 是否有我可以使用的自定义 MultiSelector 类?

我知道该工具包是在 sp1 之前启动的,但我不确定在添加 MultiSelector 之前取得了什么样的进展。

我尝试使用 ILDasm 获取 MultiSelector 类的 IL 代码并生成我自己的代码,但我没有取得任何成功,因为它实现了来自PresentationFramework.dll 中的 Selector 类。

在这个问题上的任何帮助都会很棒,目前还不能将每个人升级到 .Net 3.5 sp1。

如果有人知道另一个可以用来代替 WPF 工具包的免费 DataGrid 控件,我们也将不胜感激。

谢谢,

-诺亚

I've been trying to use the WPF toolkit in a WPF application that I'm deploying internally at my company, but the toolkit needs .Net 3.5 sp1. The only difference between sp0 and sp1 for the toolkit is the MultiSelector class that the DataGrid uses.

My question is, does anybody know of a workaround for this so sp1 isn't required? Is there a custom MultiSelector class that I could use?

I know the toolkit was started before sp1 but I'm not sure what kind of progress was made before the MultiSelector was added.

I've tried using ILDasm to get the IL code for the MultiSelector class and generate my own, but I haven't had any success as it implements features from internal parts of the Selector class in PresentationFramework.dll.

Any help on this matter would be great, and upgrading everybody to .Net 3.5 sp1 is currently not an option.

If anybody knows about another free DataGrid control that could be used in place of the WPF Toolkit, it would be appreciated as well.

Thanks,

-Noah

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酷遇一生 2024-07-20 09:03:06

您将无法使用不同的 MultiSelector,因为工具包中的 MultiSelector 对框架 SP1 版本中的类型具有硬引用。 即使您确实创建了自己的多选择器以供使用,您也必须更改网格控件才能使用您的,这需要将其反编译为源代码,修改它,然后重新编译它,这除了成为 PITA 之外,还可能违反了EULA 也是如此。

至于免费的数据网格替代方案,我会查看 Xceeds DataGrid for WPF。 Express 版本是免费的:

http://xceed.com/Grid_WPF_Intro.html

You won't be able to use a different MultiSelector, as the one in the toolkit has a hard reference to the type in the SP1 version of the framework. Even if you did create your own MultiSelector for use, you would have to change the grid control to use yours, which would require decompiling it into source, modifying it, and then recompiling it, which beyond being a PITA, is probably a violation of the EULA as well.

As for a free data grid alternative, I would check out Xceeds DataGrid for WPF. The Express edition is free:

http://xceed.com/Grid_WPF_Intro.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文