views:

674

answers:

2

I have found the following in WPF:

I have a form with AllowTransparency=true. Inside the form I put a Combobox. I add some items to the combobox.

I run this application and click on the combobox. At first it does not seem to appear at all. On closer inspection (after adding more items) I see that it is actually appearing behind the form. If I add enough items it become visible from behind the form.

If I just change AllowTransparency=false, then all is fine.

This looks like a bug in WPF (3.5 SP1).

Any one know of a workaround for this?

+1  A: 

AllowTransparency is slow and buggy and shouldn't be used - it's a great way to run into bug in various display drivers.

You can get almost anything you like without using AllowTrasparency, take a look at this post for examples:

http://blogs.msdn.com/wpfsdk/archive/2008/09/08/custom-window-chrome-in-wpf.aspx

Nir