加速 WPF 调整大小/重绘

发布于 2024-09-30 16:42:43 字数 112 浏览 0 评论 0原文

我注意到即使调整空 WPF 窗口的大小也会显示黑色区域。我桌面上的很多程序都没有这些问题。所以我想知道,有没有办法设置调整大小重绘优先级或其他东西,并加快 WPF 窗口大小的调整速度?或者这个问题是不可避免的。

Im noticing a black area displays when resizing even an empty WPF window. Alot of programs on my desktop dont have these issues.. So im wondering, is there a way to set a resize redraw priority or something, and speed up the resizing of WPF windows? or is this problem just unavoidable.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

余生再见 2024-10-07 16:42:43

这是 WPF 工作方式的继承,您对此无能为力。

您所看到的是 DirectX 表面大小调整和整个表面重绘,这需要相当长的时间。

This is inherit to how WPF works and there is nothing you can do about this.

What you're seeing is the DirectX surface resizing and the entire surface redrawing, which takes a considerable amount of time.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文