我在 WPF 项目中使用 WindowsFormsIntegration 来添加 DataGridView,但我只是在窗口中绘制它时遇到了一些问题(这需要一段时间)。
我知道双缓冲数据网格视图的解决方案,但是如何在 XAML 中为 WPF 或在 C# 中为 WPF 使用它?
WPF 中带有 WindowsFormsIntegration 或任何替代解决方案的双缓冲 datagridview 示例将不胜感激!
感谢您提供的任何帮助!
编辑:
我正在使用 Microsoft Expression Blend 2 作为界面,我注意到它生成了一个资源字典。删除其中的一些样式实际上解决了部分问题,但我一直遇到同样的问题。导致包含 DataGridView 的 GroupBox 可见的操作是:单击选项卡控件,然后选择 RadioButton。一旦选中了某个 RadioButtion,某个 GroupBox 就会变得可见。它包含 WindowsFormsIntegration 主机,该主机本身包含 DataGridView,但在我将鼠标放在 GroupBox 内的按钮上之前,WindowsFormsIntegration 不会出现(或未绘制)... Expression Blend 对我的问题负责吗?