Resize WPF window - no preview / display with rubber band

Is there a way to force the WPF window to use rubber tape (without previewing the contents while resizing) when resizing?

I understand that this is usually the user's preference on Windows, but my application uses D3D windows, and when resizing (especially in the upper left corner), a significant flicker appears.

-

I should have mentioned that I use DX10 through SlimDX. I did not find a way to use D3DImage with DX10. Is it possible?

+4
source share
2 answers

The best option in this case is to use the D3DImage class to represent your DX content in WPF. This allows you to smoothly scale the contents of Direct3D in WPF - without flickering. In addition, it provides much more sophisticated layout options since airspace is no longer a problem.

+1
source

Consistent with Reed, the D3DImage class has what you need. I don’t think there is a way to prevent redrawing when resizing, except that it overloads the worm of many window events in an ugly way.

0
source

All Articles