views:

33

answers:

1

Most of the time the ListBox appears like this:

alt text

But every once in a while it looks like this:

alt text

Any idea of what is going wrong?

--Edit--

I removed the control templates from the question, because when I removed them from my program the problem still existed. Is this a WPF bug?

A: 

Have you tried setting SnapsToDevicePixels="True" on the ListBox Item border? Since the thickness is 1 "Device independent unit" I am thinking that the border is falling on a pixel boundry.

Mike B
Just tried it and it doesn't change anything.
Justin