[]
Call this method from a handler of the Application.Suspending event.
public void HandleSuspending(bool discardDeviceResources = false)
Type | Name | Description |
---|---|---|
bool | discardDeviceResources |
If you pass True to the discardDeviceResources parameter you should also call HandleResuming(true) from a handler of the Application.Resuming event. It allows to free unnecessary DirectX resources while the application is in Suspended state.