Double buffering in WPF?

隐身守侯 提交于 2019-12-06 02:34:08

问题


I'm developing a graph control in WPF. I have previously developed it using GDI and C#. i've used double buffering in previous control to avoid some issues related to redrawing of the graph control. Now when i've developed the Graph Control in WPF i have a problem, when i use my Graph Control as a user control in a windows form,anchoring it to the form,and when running it and resizing it i can clearly see two black lines horizontal one and a vertical one in the right and bottom corners of the graph control... i think when i am resizing the graph, to occupy the resized area graph control is taking time and in the mean time the area not filled by the control is seen black...

is there any solution to this problem in WPF? like double buffering?

how can i avoid this issue??

regards, rangana.


回答1:


WPF uses DirectX for rendering, so you don't need to doubleBuffer. Perhaps the problem is in your layout code.



来源:https://stackoverflow.com/questions/1672516/double-buffering-in-wpf

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!