0

is there any way that winforms or WPF can do this kind of UI? transparent with blur window.

enter image description here

2
  • Just a hint: your question is not about C#, but about .NET. Which version? Commented Sep 10, 2012 at 1:53
  • There is, and this has been asked before. Commented Sep 10, 2012 at 1:56

1 Answer 1

3

A forenote: Windows 8 removes the Aero Glass effect. Windows will appear with a solid background where there would be glass (like how they appear on Windows 7 when you disable the glass effect but still run the DWM).

That said, the effect is done using Win32's DwmExtendFrameIntoClientArea function. Using this in your program differs depending on whether you're using WPF or WinForms (as WPF windows do some pretty interesting window subclassing, and of course, WPF controls are largely windowless).

To get a "whole glass" window, you just use the DwmExtendFrameIntoClientArea function to fill your window, rather than just the first 50px or so, which is what IE and other browsers do.

This is the canonical MSDN article on how to do this with WPF: http://msdn.microsoft.com/en-us/library/ms748975.aspx

For WinForms, see this blog article: http://blogs.msdn.com/b/tims/archive/2006/04/18/578637.aspx

Enjoy, but not for long considering Windows 8...

Sign up to request clarification or add additional context in comments.

5 Comments

There is a way to enable glass in Windows 8 though isn't there?
@series0ne No, there is not. The assets in Windows' theme files that define the glass effect have been removed completely. As far as I know it is not possible.
So is this article a hack? askvg.com/…
@series0ne that article describes a feature present in the Windows 8 Beta/Preview that was removed from RTM. Also it only enables transparency, it does not apply the blur effect or the glass "shimmer" layer.
Sigh! Windows 8 Sucks!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.