public static void Suspend()
Applications that render with Direct2D and/or Direct3D must call Suspend in response to Application.Suspending. The Direct3D runtime and the graphics driver will discard internal memory buffers allocated for the app, reducing its memory footprint.
In response to Application.Resuming, the applications must call Resume.
For more information, refer to IDXGIDevice3::Trim.