A Pane In The Glass
Hi. First off, apologies for the long absence. This was due to some project commitments, however, that is still no excuse. I am happy to say that I am now back, have a heap of cool WPF things to post on - incluiding the final 2 parts to the Button excercise.
In the mean time, I have created a quick sample for you to download and play with. This is thanks to a post provided by Adam Nathan explaining how to get that beautiful glass into a WPF application. Also, check out Tim Sneath's entry on how to extend glass into a WinForms app.
What pleased me most, was how easy it is to do. There is a very simple Helper class that takes in the window, interops with the vista DWM bits and hey presto, you have glass - even better, you can control where the glass appears in the window by playing with margins.
One of the things notes when playing with this in WinForms is that you clicks on the glass fall through, and your window loses focus - not a problem with a WPF app - it catches all clicks!
I have attached the project for you to check out. But it would be great to see some prople really making use of the glass.
Til next time...
Comments
Anonymous
September 10, 2006
<quote>
One of the things notes when playing with this in WinForms is that you clicks on the glass fall through, and your window loses focus - not a problem with a WPF app - it catches all clicks!
</quote>
Actually, the problem with WinForms not catching clicks has to do with choosing a color where R=G=B. Change that and then winforms with transparency works great... pre-RC1.
For more visit this:
http://www.danielmoth.com/Blog/2006/07/glass-in-c-alternative-approach.html
...or watch from 14' to 17' here:
http://channel9.msdn.com/ShowPost.aspx?PostID=228221
:-)Anonymous
September 12, 2006
Where can I find "dwmapi.dll" for glassfying my WPF app!
AtulAnonymous
September 13, 2006
For the most part, the Vista Desktop Window Manager is an end-user feature.&nbsp; However, because it...Anonymous
October 06, 2007
Where can I find "dwmapi.dll" for glassfying my WPF app!Anonymous
October 07, 2007
Its a DLL that ships with Vista, so if you are writing on XP, it won't be available.Anonymous
November 30, 2007
A warm welcome back Martin! When I grow up I want to be a master pun-meister like you! :) No seriously, folks like you are giving us the lesser ones hope for surviving the .NET 3-point-OH! experience..