WPF 中的 Aero 窗口 (C#)
我想实现一个Window
,就像较新版本的 IE 在 Vista/7 aero 中封装了 URL 栏一样。我环顾四周,没有找到太多有用的信息,想知道你们中是否有人知道最好的方法!
I'd like to implement a Window
much like how the newer versions of IE have the URL bar kind of incased in the Vista/7 aero. I've looked around and not found too much useful information, and was wondering if any of you guys knew of the best way to do it!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Microsoft 创建了 Windows API 代码包,以便提供对 Vista 和 Windows 7 中 API 功能的访问 该库
版本 (v1.0.1) 支持的各个功能包括:
(有趣的是,DWM 未列出,但属于代码包的一部分)。
要支持 Aero Glass,您所要做的就是让您的 WPF
Window
继承Microsoft.WindowsAPICodePack.Shell.GlassWindow
类。有关更详细的使用示例,请参阅代码包附带的 AeroGlass 示例。
Microsoft created the Windows API Code Pack in order to provide access to API features form Vista and Windows 7.
The individual features supported in this version (v1.0.1) of the library are:
(Interestingly enough DWM isn't listed but is part of the Code Pack).
All you have to do to support Aero Glass is to have your WPF
Window
inheritMicrosoft.WindowsAPICodePack.Shell.GlassWindow
class.See the AeroGlass sample provided with the Code Pack for a more detailed usage example.