Вопрос

Please check out this image http://postimage.org/image/ejdo207rz/

When I display a textbox in front of a component one datagrid the text box displays like above. If I position the textbox where it is not in front of the datagrid it displays fine. Any ideas why? possible solutions?

Это было полезно?

Решение

I ended up solving this by reading this article http://www.rqna.net/qna/znvkk-wpf-richtextbox-selected-text-distorted.html

This line of code in the xaml.cs constructor seems to clear it up.

RenderOptions.ProcessRenderMode = System.Windows.Interop.RenderMode.SoftwareOnly;

It is still slightly blurry but at least readable now.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top