I am using XAML/C# + C++ app with DrawingSurfaceBackgroundGrid
for DirectX11 as interop.
When using DrawingSurfaceBackgroundGrid it seems that Connect()
and Disconnect()
are called immediately when the app is suspended to background.
When Disconnect()
is called, DX Context and Device are lost. This causes me having to re-load all textures. Sound and music are not removed and instead are resumed.
I've tried a few DrawingSurfaceBackgroundGrid
and they all seem to have the same issue.
This doesn't happen when using native code. I was wondering if there is any way to handle pausing/resuming of apps when using XAML and not have it Disconnect()
on minimizing app.