Just apply glass effort of Vista/Windows 7 for windows form and WPF framework.

  • The orignal idea from WPF unleashed

For normal WPF application, we can use P/Invoke and delegate to win32 WDM API to enable glass effect for application – see DwmExtendFrameIntoClientArea() API.

However, this pre-requisite is that BorderStyle = None.

The better choice for not None border style is DwmEnableBlurBehindWindow API(), However for this case, if multi-windows dialogs have been concerned, the total effect won’t as we expected.

As TopMost windows effect will be overrided by internal control style.

See Microsoft http://windowsformsaero.codeplex.com/wikipage?title=Glass%20on%20WinForms&referringTitle=Documentation style, that’s enable the internal control style for glass transparent.

However, Windows Form won’t be such case, as we use standard windows Form control. So Glass Effect please let it for WPF application or single style windows form application.

Esp. for WinForm application, which hasn’t had so many embedded layout. [My Report application is definitely not this case, so very ugly for output]

  • Reference of Glass Effect Enable

http://www.emilstefanov.net/Projects/VistaGlass.aspx

http://www.danielmoth.com/Blog/Vista-Glass-Answers-And-DwmEnableBlurBehindWindow.aspx

http://www.danielmoth.com/Blog/Glass-In-C-An-Alternative-Approach.aspx

http://www.danielmoth.com/Blog/Vista-Glass-In-C.aspx

http://stackoverflow.com/questions/4768862/dwmextendframeintoclientarea-without-transparencykey

http://msdn.microsoft.com/en-us/library/aa969508.aspx

http://msdn.microsoft.com/en-us/library/aa969508.aspxhttp://msdn.microsoft.com/en-us/library/aa969508.aspx

http://www.danielmoth.com/Blog/Vista-Glass-In-C.aspx

http://stackoverflow.com/questions/5050526/windows-aero-forms-errors

http://stackoverflow.com/questions/4420528/how-can-i-get-aero-glass-on-a-windows-form-without-borders/4420564#4420564

CodeProject – http://windowsformsaero.codeplex.com/wikipage?title=Glass%20on%20WinForms&referringTitle=Documentation

Advertisements