【发布时间】:2014-07-04 00:36:02
【问题描述】:
我在 WPF 窗口的 WindowsFormsHost 内托管了一个 winforms DataGridView。功能很好,但网格单元格中的文本看起来有点模糊。通常 WinForms 文本几乎没有抗锯齿。
如何使DataGridView 文本看起来像在Windows Form 上正常显示的那样,或者至少更清晰?我曾尝试使用WindowsFormsHost 的TextOptions.TextFormattingMode 和SnapsToDevicePixelssettings,但没有发现任何区别。
作为我的意思的一个例子,这里有两个屏幕截图:
Datagridview 在 WPF 中 WindowsFormsHost:
DataGridView 在 Windows 窗体中:
【问题讨论】:
标签: wpf visual-studio-2010 text-rendering windowsformshost