Is it possible to achieve the “Aero Glass” look on XP?

这一生的挚爱 提交于 2019-12-04 02:13:47

问题


Does anyone know any kind of framework that enables (not exactly the same, but) Vista's Aero Glass on XP?

I need to develop a little desktop application with WPF, which has a Vista-like UI on XP. I don't need exactly the Aero Glass, some UI like "Windows Live Messenger" will do the thing. Is there any way to make it a reality?


回答1:


If you really mean Aero Glass then I think you're out of luck. The hardware acceleration required to create this effect is only supported via Vista's new DWM (Desktop Window Manager), which works by compositing multiple windows together into one rendered layer.

If you just want transparency and non-rectangular windows then this can definitely be achieved in XP, as evidenced by the fact that Windows Live Messenger can do it. Have a look at Layered Windows in MSDN.




回答2:


As Stu Mackellar wrote, Windows XP is missing a required piece in order to obtain Aero Glass effect: DWM. A solution is to create your own "fake" glass effect. Thake a look to this blog (you can download the code).



来源:https://stackoverflow.com/questions/484130/is-it-possible-to-achieve-the-aero-glass-look-on-xp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!