I have a window with these values:
WindowState='Maximized' AllowsTransparency='True' Opacity='0.5' WindowStyle='None'
This window is coming on top of other window (as a pop-up) with content on it on a specific location.
I have a new requirement. This window have to show a rectangle area from the window below. In other words, i have to set a ‘hole’ in this window which will be totally transparent (without the opacity value). Until this moment i couldn’t figure out a way to make this transparent hole.
Hope to get an idea…
try to avoid AllowsTransparency=true, it is very buggy and slow.
you can PInvoke SetWindowRgn to create a a window of any shape: