Styling Floating Windows - How to Remove Glass Border?

Apr 29, 2010 at 7:13 AM

I'm creating my Visual Studio 2010 style for AvalonDock, and I have virtually everything done except the floating dock windows. I have the whole control drawn out; I edited the template in the source code since I couldn't figure out how to do it from within my app style. The only problem is that when I set WindowStyle to none (and comment out the OverrideMetadata in the code-behind), there's a glass border around the window.

I can't figure out how to remove it. Normally, in WPF, when you set the WindowStyle to none, there's no border at all; it has to be added in somewhere, I just can't seem to figure out where it's defined and how to disable it (VS2010 dock windows are chromeless).



Apr 29, 2010 at 7:35 AM

Wow. Of course, after I finally ask for help, I come across the answer by sheer dumb luck:

All I did was set the background to Transparent in the control template and then set AllowsTransparency to true in the constructor. Don't know why that works but it does.