How to detect when a WPF control has been redrawn?
问题 I am using D3DImage to display a sequence of frames that are rendered unto the same Direct3D Surface one after the other. My current logic is thus: Display last rendered frame (i.e.D3DImage.Lock()/AddDirtyRect()/Unlock()) Start rendering next frame Wait for next frame to be ready and that it's time to display it Display last rendered frame ... The problem with this approach is that when we are done calling Unlock() on D3DImage, the image isn't actually copied, it's only scheduled to be copied