private void Start()
        {
            Reset();
            BuildWindow();
            BuildFrameRateStrings();

#if WINDOWS_UWP
            appCapture = AppCapture.GetForCurrentView();
#endif // WINDOWS_UWP
        }
Exemplo n.º 2
0
        private void Start()
        {
            Reset();
            BuildWindow();
            BuildFrameRateStrings();

#if WINDOWS_UWP
            appCapture = AppCapture.GetForCurrentView();
            if (appCapture != null)
            {
                appCaptureIsCapturingVideo   = appCapture.IsCapturingVideo;
                appCapture.CapturingChanged += AppCapture_CapturingChanged;
            }
#endif // WINDOWS_UWP
        }
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     appCapture = AppCapture.GetForCurrentView();
     appCapture.CapturingChanged += AppCapture_CapturingChanged;
     UpdateCaptureStatus();
 }