After playing with WPF and MacDock
, I thought let me make it easier for my friends to enable the Glass Transparency in their WPF Apps and thus I have written a library which you can use in your WPF application
Download the library with source code from here
To use this library in you application, add the library using Add Reference Wizard into your Project.
using ExtendGlass;
ExtendGlassFrame extendGlass = new ExtendGlassFrame();
protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); bool ret=extendGlass.Extend(this, new Thickness(-1)); }
Its easy isnt it
Remember that we have to paint the window and that can be done only in the OnSourceInitialized function
Please do leave your comment regarding how it works for you





Hello mate,
That’s totally awesome.
It works like a charm.
You forgot to mention on the post to create an instance of ExtendGlass before using that code inside the box.
Cheers!!
Hi Godwin, thanks for the comment
I do have this line in my post
,
using ExtendGlass;
ExtendGlassFrame extendGlass = new ExtendGlassFrame();
Is that something different you are mentioning that I have missed here ?
Thanks mate! Gunna try and get this working now.
Downloading Linq first.
Hello,
looks very nice!
how can i make it work with vb.net
Hi Chakkaradeep,
I would like to say thanks for this post.
It helped me a lot. This looks great.
Once again Ton’s of thanks.
From sagar.
It works perfectly!
Thanks Chaks
Thanks a lot man, looks awesome!