/// <summary> /// 调用XNA资源卸载函数(禁止重载) /// </summary> public void OnNavigatedFrom(NavigationEventArgs e) { if (process != null) { process.End(); process.OnDestroy(); } if (useXNAListener) { sl_listener.UnloadContent(GamePage); } XNA_UnloadContent(); TargetElapsedTime.Stop(); try { SharedGraphicsDeviceManager.Current.GraphicsDevice.SetSharingMode(false); this.Destory(); } catch { } if (process != null) { process = null; } }
public void UnloadApp() { if (m_process != null) { m_process.End(); } Printf("unloadApp"); }
/// <summary> /// 调用XNA资源卸载函数(禁止重载) /// </summary> protected sealed override void UnloadContent() { if (process != null) { process.End(); } if (useXNAListener) { xna_listener.UnloadContent(this); } XNA_UnloadContent(); if (content != null) { content.Unload(); } }