我在 WPF 项目中使用 WindowsFormsIntegration 来添加 DataGridView,我在将它简单地绘制在窗口中时遇到了一些问题(这需要一段时间)。
我知道 doublebuffered datagridview 的解决方案但是如何在 WPF 的 XAML 或 WPF 的 C# 中使用它?
WPF 中带有 WindowsFormsIntegration 或任何替代解决方案的双缓冲 datagridview 示例将不胜感激!!
感谢您提供的任何帮助!
编辑:
我在界面中使用 Microsoft Expression Blend 2,我注意到它生成了一个资源字典。删除其中的一些样式实际上解决了部分问题,但我一直遇到同样的问题。导致包含 DataGridView 的 GroupBox 可见的操作是:单击选项卡控件,然后选择 RadioButton。一旦某个 RadioButtion 被选中,某个 GroupBox 就会变得可见。它包含 WindowsFormsIntegration 主机,它本身包含 DataGridView 但 WindowsFormsIntegration 不会出现(或未绘制),直到我将鼠标放在 GroupBox 内的按钮上...Expression Blend 是否对我的问题负责?
请您参考如下方法:
使用 Windows 窗体集成数据网格的一个很好的替代方法是使用 Infragistics 提供的免费且非常棒的原生 WPF 数据网格。他们称它为 xamDataGrid 控件,相信我,它绝对漂亮。为了将此引入我公司的应用程序,我得到了一些重要的印象分。
下载页面在这里:http://www.infragistics.com/dotnet/netadvantage/wpf.aspx?panel=Downloads#Downloads
概览页面:http://www.infragistics.com/dotnet/netadvantage/wpf/xamdatagrid.aspx#Overview
NetAdvantage for WPF Express 2009 Vol. 1 gets you started with the xamDataGrid™ for WPF development (this is not a trial and features the real xamDataGrid version 9.1; no purchase is necessary to use it in your applications).
