Example #1
0
        // App system event handlers
        private void AppSystem_ForegroundChanged(object sender, ForegroundStateChangedEventArgs e)
        {
            if (_inForeground = e.InForeground)
            {
                AudioFeedback.Play(Settings.Default.AudioFeedbackGainedForeground);
            }
            else
            {
                AudioFeedback.Play(Settings.Default.AudioFeedbackLostForeground);
            }

            UpdateWindowSubtitle();
        }
Example #2
0
 private void AppSystem_ForegroundChanged(object sender, ForegroundStateChangedEventArgs e)
 {
     _viewModel.WindowIsFocused = e.InForeground;
 }