是WPF硬件加速时,窗口AllowsTransparency =真的吗? [英] Is WPF Hardware-accelerated when Window AllowsTransparency = true?

查看:639
本文介绍了是WPF硬件加速时,窗口AllowsTransparency =真的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找让自己的窗框在WPF中,类似于Visual Studio的。我是pretty的肯定我过去读的地方,AllowsTransparency =真会迫使WPF软件模式来呈现。不过,我在其他地方阅读了的窗口分层的,你可以有硬件加速,这就是WPF做。我也觉得很难想象的Visual Studio 2013 - 附其自定义的框架和透明边框blur-将是软件渲染。

I have been looking at making my own window frame in WPF, similar to Visual Studio. I'm pretty sure I read somewhere in the past that AllowsTransparency = true would force WPF to render in software-mode. However, I've read elsewhere that with window layering you can have hardware acceleration and this is what WPF does. I also find it hard to imagine that Visual Studio 2013 -with its custom frame and transparent border blur- would be software-rendered.

有没有一个明确的答案的问题(假设的Windows 7起),是WPF硬件加速时,窗口AllowsTransparency =真的吗?

Is there a definitive answer to the question (assuming Windows 7 onwards), Is WPF Hardware-accelerated when Window AllowsTransparency = true?

如果没有,如何Visual Studio中把它关闭?

If not, how does Visual Studio pull it off?

推荐答案

看来,透明窗( AllowsTransparency = TRUE )的硬件加速Windows Vista和上:<一个href="http://blogs.msdn.com/b/seema/archive/2006/09/18/hw-acceleration-of-layered-windows-for-rtm.aspx">HW分层窗口的加速

It seems that transparent windows (AllowsTransparency = true) are hardware accelerated for Windows Vista and upper: HW Acceleration of Layered Windows

还有一个修补程序,使其在Windows XP中以及工作:<一href="http://support.microsoft.com/kb/937106/en-us">http://support.microsoft.com/kb/937106/en-us

There is also an hotfix to make it work under windows XP as well: http://support.microsoft.com/kb/937106/en-us

这篇关于是WPF硬件加速时,窗口AllowsTransparency =真的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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