Luke R

I have created a NavigationWindow and applied Glass to the window using a Interop GlassHelper. The back and next buttons do not look as nice as the glass ones within Internet Explorer.

Has anyone been able to reproduce this effect to as close to an IE7 (Glass-enabled) window when using Glass in Windows Vista

If not how would one create a glass window exactly the same as IE7 from a .NET application

Thanks in advance for help.



Re: Windows Presentation Foundation (WPF) NavigationWindow Glass Effect

Drew Marsh

You will need to provide your own navigation buttons by overriding the template for NavigationWindow, there's no other way to make the ones that are provided out of the box prettier. Here's an old thread that shows how to change the template for a NavigationWindow

As far as the glass is concerned, how are you setting the margins Are you extending the glass entirely into the client area IE only extends the margins a little extra into the top of the client area and then puts all the navigation controls on top of that. You can do the same thing, but I don't know what wrapper API you're using. In pure DWM you would call DwmExtendFrameIntoClientArea and specify only a top margin.

HTH,
Drew





Re: Windows Presentation Foundation (WPF) NavigationWindow Glass Effect

Luke R

Yes, it seems that the disabled buttons do not have any transparency when using the default NavigationWindow style. As a test the whole window was drawn in glass and the buttons do not show any transparency.

It seems that IE7 and Windows Explorer use PNG resources. Does anyone know where I could obtain these resources within Windows Vista (what file would these be stored within)





Re: Windows Presentation Foundation (WPF) NavigationWindow Glass Effect

Luke R

Any ideas how to create these Back / Next buttons to maintain the Windows Vista style. I would like them to work identically to those in Windows Explorer and IE7 when glass is enabled etc.

Anyone from Microsoft available to help on this issue

Thanks.





Re: Windows Presentation Foundation (WPF) NavigationWindow Glass Effect

Mio

Try looking in ieframe.dll.



Re: Windows Presentation Foundation (WPF) NavigationWindow Glass Effect

Luke R

Yes there is BMP files with black backgrounds, how are these converted to transparent like when the Vista glass is enabled. Or are different resources used when glass is enabled

Any ideas

Edit: FYI have done this by converting the BMP to PNGs by using a tool called alphahlp.exe