Runtime-error in wpf with Window.AllowsTransparent set to true.

Posted by Alxandr on Stack Overflow See other posts from Stack Overflow or by Alxandr
Published on 2010-04-06T00:17:37Z Indexed on 2010/04/06 0:23 UTC
Read the original article Hit count: 645

Filed under:
|

I get an exception thrown at runtime when I set AllowsTransparent="True" I get an exception saying the WindowStyle can not be set to None if AllowsTransparent is set to true. Even if I explicitly say that WindowStyle is set to SingleBorder I get this error. However, if I set WindowStyle to SingleBorder and remove the AllowsTransparent-tag, I get no error, and the top of the window (the icon, name and close, minimize and maximize-buttons) disappears. Anyone knows what can cause this? Or is it just a bug in .Net 4.0 rc?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about .net-4.0-rc1