private async void Current_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
        {
            // work around to virtual drawing surface bug.
            await Task.Delay(1000);

            _drawingSurfaceRenderer.ReDraw(ViewPort, _infiniteCanvasScrollViewer.ZoomFactor);
        }
Exemplo n.º 2
0
        private void App_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
        {
            Log("App.LeavingBackground");

            // Resuming updating UI when brought out of background
            activityUpdateTimer.Start();
        }
        private async void Current_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
        {
            var defferal = e.GetDeferral();

            await ResetUpdateTimer();

            defferal.Complete();
        }
Exemplo n.º 4
0
        private async void Application_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
        {
            var deferral = e.GetDeferral();

            await InitializeKinect();

            deferral.Complete();
        }
Exemplo n.º 5
0
 private void App_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
 {
     _isInBackgroundMode = false;
     Debug.WriteLine($"App state : {_isInBackgroundMode}");
     if (Window.Current.Content == null)
     {
     }
 }
        public void OnLeavingBackground(Windows.ApplicationModel.LeavingBackgroundEventArgs args)
        {
            if (_isInBackground && Window.Current.Content is WebViewPage webViewPage)
            {
                webViewPage.Load();
            }

            _isInBackground = false;
        }
Exemplo n.º 7
0
        private async void OnLeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
        {
            _vm.RegisterEvents();
            if (await _vm.LrcAutoSearch())
            {
                await Task.Delay(200);

                LrcPresenter.ForceRefresh();
            }
        }
Exemplo n.º 8
0
        private void App_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
        {
            var oldState = _isInBackgroundMode;

            _isInBackgroundMode = false;

            if (oldState && Window.Current.Content == null)
            {
                CreateRootFrame(ApplicationExecutionState.Running, string.Empty);
            }
        }
Exemplo n.º 9
0
 /*
  * METHOD      : Current_LeavingBackground()
  * DESCRIPTION :
  *      This method takes the event fired when the application leaves the background state and uses it
  *      to restore data if it was launched from a terminated state.
  * PARAMETERS  :
  *                          object : sender
  *      LeavingBackgroundEventArgs : e
  * RETURNS     :
  *      void : void
  */
 private void Current_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
 {
     if (localSettings.Values["gameState"] != null)
     {
         //If game was loaded from terminate and suspend normally then prompt user to restart or continue and restore game
         if ((int)localSettings.Values["gameState"] == TERMINATE)
         {
             RestoreGame();
         }
     }
 }
Exemplo n.º 10
0
 private void CoreApplication_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
 {
     NetworkHelper.Instance.NetworkChanged += Instance_NetworkChanged;
     WiFiScanTimer_Tick(null, null);
     if (WiFiScanTimer != null)
     {
         WiFiScanTimer.Tick += WiFiScanTimer_Tick;
         WiFiScanTimer.Start();
     }
     Progressing.Visibility = Visibility.Visible;
 }
Exemplo n.º 11
0
        private async void OnNowPlayingLeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
        {
            PlaybackControl.Instance.Player.CurrentStateChanged += NowPlayingOnPlaybackStateChanged;
            PlaylistManager.Instance.FavoriteChanged            += NowPlayingOnFavoriteChanged;
            PlaybackControl.Instance.NowPlayingChanged          += NowPlayingOnNowPlayingItemChanged;
            _nowPlayingTimer = new DispatcherTimer {
                Interval = TimeSpan.FromSeconds(0.5)
            };
            _nowPlayingTimer.Tick += NowPlayingTimerOnTick;
            UpdateNowPlayingStatus();
            if (StateGroup.CurrentState == LyricsState)
            {
                _displayRequest.RequestActive();
            }
            if (await LrcAutoSearch())
            {
                await Task.Delay(200);

                LrcPresenter.ForceRefresh();
            }
        }
 private void LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
 {
     XElement.StartTimer();
 }
Exemplo n.º 13
0
        private void Current_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
        {
//            this.AssociatedObject.SetMediaPlayer(this.MediaPlayer);
        }
 private void App_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
 {
     EventDispatcher.Dispatch(() => LeavingBackground?.Invoke(this, e));
 }
 private void HybridWebApplication_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
 {
     _webUIApplication.OnLeavingBackground(e);
 }
 private void Current_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
 {
     InitializeCaptureSinkCommand?.Execute(sender);
 }
Exemplo n.º 17
0
 private void Current_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
 {
     ResetUpdateTimer();
 }
Exemplo n.º 18
0
 private void Current_LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
 {
     ActivatePolling();
 }
Exemplo n.º 19
0
 private static void LeavingBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
 {
     ApplicationActivated();
 }
Exemplo n.º 20
0
 private void LeaveBackground(object sender, Windows.ApplicationModel.LeavingBackgroundEventArgs e)
 {
     UwpDispatcher.Activated = true;
 }