D2D + WPF + SwapChain = ???
-
Hi together, i am currently working on a WPF-based software for some basic CAD-funtionality. I herefore used this example Direct2DonWPF for using DirectX / D2D in a WPF control, which is working fine. I can draw what i want and the performance is good - EXCEPT the flickering when i draw to fast (>25fps). With GDI+ i was able to activate Doublebuffering and everything was fine. Now i'd need to implement the SwapChain from DirectX to get rid of this problem. Unfortunately, i found many tutorials and examples dealing with this issue, but none of them implements the SwapChain and D2D in WPF. I tried hours on hours to get it working, but on some random point i can't get it working. Could someone help me understanding how to implement the SwapChain in the previously linked example, using D3DImage control etc.? Thanks for your help, Max