WPF window transparancy
-
Hey, I want to make a window with WindowStyle ThreeDBorderWindow transparent. This solution[^] does not work for windows with that WindowStyle :( Is this possible, and if so, how? Cheers!
Jeroen De Dauw --- Forums ; Blog ; Wiki --- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!
-
Hey, I want to make a window with WindowStyle ThreeDBorderWindow transparent. This solution[^] does not work for windows with that WindowStyle :( Is this possible, and if so, how? Cheers!
Jeroen De Dauw --- Forums ; Blog ; Wiki --- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!
jeroen de dauw wrote:
Is this possible, and if so, how?
AllowsTransparency can only be used when the WindowStyle is None. You could use WindowStyle="None" AllowsTransparency="True" and provide the titlebar and borders yourself.
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
jeroen de dauw wrote:
Is this possible, and if so, how?
AllowsTransparency can only be used when the WindowStyle is None. You could use WindowStyle="None" AllowsTransparency="True" and provide the titlebar and borders yourself.
Mark Salsbery Microsoft MVP - Visual C++ :java:
Hey, I'm aware of that, but don't want to go construct my own titlebar, borders and WindowState buttons myself. The approach would be viable if there was an easy way to get all those things onto my window by using some native properties or so, but I guess that's not possible. Cheers!
Jeroen De Dauw --- Forums ; Blog ; Wiki --- 70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!