示例#1
0
 /// <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;
     }
 }
示例#2
0
 public void UnloadApp()
 {
     if (m_process != null)
     {
         m_process.End();
     }
     Printf("unloadApp");
 }
示例#3
0
 /// <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();
     }
 }