WPF: Created a test control to debug drawing bitmaps on different threads; I think I finally found the solution.