Most of the time the ListBox appears like this:

But every once in a while it looks like this:

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?