How to achieve Vista glass transparency (AERO) in a WPF application?

会有一股神秘感。 提交于 2019-11-27 16:48:24

问题


It's easy for a WPF application to make parts of a window transparent or semi-transparent. But how to I apply the current Vista theme (colors, opacity) to these transparent parts?

When I have a green glass border how will I get a green glass background of the same style?

Is it even possible to do this without calls to the Windows API?

I am thinking of something like this


回答1:


Here's a nice example:

CodeProject: Adding Glass Effect to WPF using Attached Properties




回答2:


Take a look at this link, look for the section titled "IE7 – Extending the glass frame":

http://blogs.msdn.com/wpfsdk/archive/2008/09/08/custom-window-chrome-in-wpf.aspx




回答3:


Here's the official documentation on extending the Aero glass effect in your WPF app:

http://msdn.microsoft.com/en-us/library/ms748975.aspx



来源:https://stackoverflow.com/questions/633817/how-to-achieve-vista-glass-transparency-aero-in-a-wpf-application

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