Transparent WPF Window
For those who have played a bit with the exciting WPF windows, you may have noticed that the transparency of the form is related to the the windowstyle property. In other words, if you want to set the AllowTransparecy property to true, you would have to set the WindowStyle property to none. One may wonder why does MS force us to do this, well in short; Not all of the window is drawn by WPF. The title bar and border are still render by GDI+. This means that any transformation or rendering possible on all the other objects in WPF are not possible on these two parts of the window.
Therefore, in order to create a custom transparent window we must get rid of the border drawn by GDI+. We can accomplish this in one line of code, however we must now handle manually the closing, resizing and dragging.

Leave a Reply