Windows Aero areas in own C# Applications

痴心易碎 提交于 2019-12-31 01:51:10

问题


I'm wondering about that many new applications, I think most built in WPF, has this really cool Windows Aero Glass interfaces.

For example Seesmic or the upcoming Firefox 3.7
(source: crenk.com)

Searching in the internet most time it looks like you need a hack to realize this. But seriously: I don't think big software development teams use hacks to roll out their huge used products.

So my question is: Windows Aero Glass Areas - How to do?

Is it only possible with a hack?

Maybe it's just one property, i don't know. I'm WinForms developer so I never tested out WPF. But my Google search didn't look like It is easier with WPF.


回答1:


To have Aero glass, you need to use the Desktop Window Manager. It is a Win32 DLL, so you need to P/Invoke it. Articles on how to do this are all over the Internet, ex. http://blogs.msdn.com/b/adam_nathan/archive/2006/05/04/589686.aspx Using P/Invoke is definitely not a hack.



来源:https://stackoverflow.com/questions/2658518/windows-aero-areas-in-own-c-sharp-applications

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