WPF: Fixed build after introducing dirty rects.

However, dirty rects is still a mystery in WPF and will be fixed later.
It was simple in WinForms (and every other platforms), not sure why it
is hidden in WPF.