WPF窗體閃爍的一種解決辦法
阿新 • • 發佈:2020-05-01
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,對閃爍問題有一定的緩解。