加速 WPF 调整大小/重绘 [英] Speeding up WPF resizing/redrawing

查看:71
本文介绍了加速 WPF 调整大小/重绘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到即使调整空的 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.

推荐答案

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

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

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

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

这篇关于加速 WPF 调整大小/重绘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆