I would like to make a simple application which is transparent but retains the 'normal' borders, close button, minimize and maximize button.
I know how to make the window transparent using the standard
<Window
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent">
</Window>
but this removes the borders and top right buttons. I read this thread,
Transparent window with a border
which sort of gives solution, but really, I just want to be able to keep the standard borders that would be there if I didn't make the window transparent. The means I can move the window, resize, close, etc... Is this possible?
I threw together a quick
TransparencyConverter
class based on this tutorial on Microsoft.com you can use for this purpose:Once you have this in, add the Transparent Background attribute to your XAML and subscribe to the Window_Loaded event and call the MakeTransparent method:
A screenshot is below:
I would first look at the (a)lpha setting in the rgb(a) color of the background color. The alpha setting sets the opacity of the object color.
Although, I notice that as I'm posting this, there is another post before mine that looks more concise and would probably be more appropriate for you.