tags:

views:

213

answers:

2

Hey guys.. Windows 7 windows naturally have a semi-transparent header. What I just realized is that Google Chrome TabBar blends with this effect as if the TabBar background and the window header was the same thing! pretty much cool!

Is there a way to have the same result with WPF? Any example?

Thanks.

+5  A: 

You would need to call down to the Desktop Window Manager APIs. See DwmExtendFrameIntoClientArea, or DwmEnableBlurBehindWindow to apply the glass effect only to a specific region. Use new WindowInteropHelper(myWindow).Handle to get the HWND for passing to these APIs.

itowlson
Now that I gave me directions I was able to find an example by my self. Just to complement your answer: http://blogs.msdn.com/adam_nathan/archive/2006/05/04/589686.aspxThank you very much.
Ciwee
+1  A: 

See http://blogs.msdn.com/wpfsdk/archive/2008/09/08/custom-window-chrome-in-wpf.aspx for code samples for this and almost every other effect you can find in Vista/Office2007

Nir
Nice post.. check this also: http://www.codeplex.com/WPFWindow
Ciwee