In Win Form, we can create non-rectangular forms by creating a bitmap that have a background color like blue. So, we can set it to background image of Win Form and with change TransparencyKey option to blue, we have a shaped-window.
So, my question is What is the equivalency to TransparencyKey in WPF that does like Win Form's TransparencyKey?
Thanks for your attention 🙂
There is no equivalent.
Just use an image with transparent areas (so it has to be a PNG or GIF), set the
WindowStyletoNone, set the window’s background toTransparent, and setAllowTransparencyto true.Transparent areas will not be clickable.