I am new to Windows 7 programming and am trying to get a sense of what technologies or frameworks I should be using (I suppose within .NET) that will let me create graphical elements on the screen without any of the standard Windows UI chrome (resize handles, minimize/maximize, title bar etc.).
As a “hello world”, I’d like to be able to create a 200×200 pixel box, red, with a slight transparency, that has the text “hello world” in it and maybe moves across the screen. That would be a great start into the kind of thing I’m interested in.
In WPF you can set the
WindowStyleto “None” and theResizeModeto “NoResize” to remove the OS chrome from the window. To make the window translucent you need to setAllowsTransparencyto “True” and setOpacityto a percent value of your choosing.Here’s a window with no chrome and an 80% opacity:
You can even create a brush and set that to the Window’s
OpacityMaskproperty to make the window non-square.