本文介绍了C#中如何使Windows 7的Aero的winform(所迷离玻璃)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让财产以后这样

我用VS 2010

推荐答案

如果所有您正在寻找的是标准的玻璃效果(包括模糊),看看这篇文章:

If all you are looking for is the standard glass effect (which includes the blur), check out this article:

基本上,你正在做的是延长了窗口的框架(已具有玻璃效果)到客户端领域。你必须调用API DWM附带的Windows Vista或更高版本使用一对夫妇的P / Invoke的方法,因为这不是建立在.NET框架

Basically, all you're doing is extending the window's frame (which already has the glass effect) into the client area. You have to call the DWM API that come with Windows Vista or later using a couple of P/invoke methods because this is not built into the .NET Framework.

编辑:如果您正在寻找在模糊效果更多的控制,你可能会考虑更具体的的功能,虽然我没有用这个自己。

If you're looking for more control over the blur effect, you might look into more specifically the DwmEnableBlurBehindWindow function from the DWM API, although I have not used this myself.

这篇关于C#中如何使Windows 7的Aero的winform(所迷离玻璃)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 20:29