C#中如何使Windows 7的Aero的winform(所迷离玻璃)?

编程入门 行业动态 更新时间:2024-10-19 16:38:38
本文介绍了C#中如何使Windows 7的Aero的winform(所迷离玻璃)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何让财产以后这样

Windows窗体玻璃效果,使ImageBox透明

我用VS 2010

推荐答案

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

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

的 www.codeproject/KB/vista/AeroGlassForms.aspx

基本上,你正在做的是延长了窗口的框架(已具有玻璃效果)到客户端领域。你必须调用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.

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

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(所迷离玻璃)?

本文发布于:2023-11-12 03:59:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580458.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:迷离   玻璃   Windows   Aero   winform

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!