Hey guys.
I’ve got a question related to layered windows that I’m hoping someone can help me with. I’m running into perf issues with animations in an app I’m working on. The problems all but go away if I set AllowsTransparency=”false” on the main window (which makes sense to me because of the layered windows thing).
This app needs custom window chrome, but it works out that the design is rectangular so I don’t need transparency. I would like disable transparency and still kill the window chrome.
The problem is that this combo…
AllowsTransparency="False"
WindowStyle="None"
…produces a window that looks like this:

Do Anybody know of any way to get rid of that outer border with enabling transparency?
Thanks!
Awesome. I’ll check it out. Thanks!
From: wpf-di...@googlegroups.com [mailto:wpf-di...@googlegroups.com] On Behalf Of Jeremiah Morrill
Sent: Monday, December 14, 2009 1:57 PM
To: wpf-di...@googlegroups.com
Subject: Re: [WPF Disciples] borderless window in Aero without being layered
You may need to drop down to using some Win32. SetWindowLong may be what you are looking for.
A quick search on google for WPF + SetWindowLong came up with something that might be useful to you.
On Mon, Dec 14, 2009 at 1:48 PM, Robby Ingebretsen <ro...@thinkpixellab.com> wrote:
Hey guys.
I’ve got a question related to layered windows that I’m hoping someone can help me with. I’m running into perf issues with animations in an app I’m working on. The problems all but go away if I set AllowsTransparency=”false” on the main window (which makes sense to me because of the layered windows thing).
This app needs custom window chrome, but it works out that the design is rectangular so I don’t need transparency. I would like disable transparency and still kill the window chrome.
The problem is that this combo…
AllowsTransparency="False"
WindowStyle="None"
…produces a window that looks like this:
Error! Filename not specified.
Thx dude. It’s kinda funny to see interop stuff in VB…not what I’m used to. I think I can sort it out though.
You rocked it! Yeah, that does exactly what I want. I knew there had to be a way J
Thanks man!