I get an exception raised at runtime when I install AllowsTransparency="True". I get an exception saying that WindowStyleit cannot be set to Noneif the parameter is AllowsTransparencyset to true. Even if I directly say that it is WindowStyleset to SingleBorder, I get this error. However, if I set WindowStylein SingleBorderand removed AllowsTransparency-tag, I do not get an error, and the top of the window (icon, name, and close, minimize and maximize buttons) disappear. Does anyone know what might cause this? Or is it just a bug in .Net 4.0 rc?
[Edit]
I also tried this in VS2008, and get the same results. What I have not achieved is a simple window in which I draw a window myself and leave nothing in the system, however things like minimization and maximization should work.
source
share