Hi I am experimenting with Direct2D on Win 7 in C# via SlimDX.
I have implemented the MSDN docs simple app tutorial and have a working D2D app.
But I notice that when I resize the window larger, there is a thick black border caused by the lag between the window frame growing, and D2D drawing in the resized render target.
In my Resize event handler I simply resize the render target to this.ClientSize. If the resize fails I destroy my device objects.
I then call this.Invalidate() to redraw the contents.
I have overriden OnPaintBackground to stop the horrible grey flicker.
In my Paint event I clear the background to blue and draw some stuff.
Does anyone know how to fix the black lag?