WPF窗体闪烁的一种解决办法
Posted 144823836yj
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WPF窗体闪烁的一种解决办法相关的知识,希望对你有一定的参考价值。
You can use a transparent window (AllowTransparency = True) with a grid, then when your control needs to be hidden you can set the visibility of the control to collapsed. There will be no flickering and no moving of the window but there won‘t be anything there either so you will see throug as if you would have resized, moved your window.
某些时候,弹出的窗体会闪烁,这着实让人难受,通过给给要弹出的窗体设置AllowTransparency为True,对闪烁问题有一定的缓解。
以上是关于WPF窗体闪烁的一种解决办法的主要内容,如果未能解决你的问题,请参考以下文章