コード例 #1
0
 private void OnTimerPreview(object status)
 {
     GridPhoto.Dispatcher.Invoke(() =>
     {
         _liveView.Stop();
         _cameraDevice.WaitForReady();
         VisibilityManagement(2);
         LaunchTimerBeforeCapture();
     });
 }
コード例 #2
0
        private void Stop()
        {
            StopButton.IsEnabled = false;
            _liveView.Stop();
            if (_recording)
            {
                StopRecordMovie();
            }
            Hide();
            TextBeforeVideo.Visibility = Visibility.Hidden;
            EndMessage.Visibility      = Visibility.Hidden;
            ErrorMessage.Visibility    = Visibility.Hidden;
            Video.Visibility           = Visibility.Hidden;
            ButtonImageStop.Visibility = Visibility.Hidden;
            ButtonImage5.Visibility    = Visibility.Hidden;
            ButtonImage4.Visibility    = Visibility.Hidden;
            ButtonImage3.Visibility    = Visibility.Hidden;
            ButtonImage2.Visibility    = Visibility.Hidden;
            ButtonImage1.Visibility    = Visibility.Hidden;
            ButtonImage0.Visibility    = Visibility.Hidden;

            StopButton.Visibility = Visibility.Hidden;
            StopButton.IsEnabled  = false;
            _playMain(_error);
        }