WPF 工具包 Datagrid with .Net 3.5 no sp1
我一直在尝试在我公司内部部署的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将无法使用不同的 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