示例#1
0
        //Bring back the camera for another qr scanning
        private async void buttonVerifySession_Click(object sender, RoutedEventArgs e)
        {
            capturePreview.Visibility = Visibility.Visible;
            await camera.InitPreview(capturePreview);

            await camera.AutoFocus();

            timer.Start();

            textBlockSessionInfoExtra.Text = "";
        }
示例#2
0
        private async void Page_Loaded(object sender, RoutedEventArgs e)
        {
            camera = UniversalCamera.GetDefault();
            await camera.InitPreview(capturePreview);

            timer          = new DispatcherTimer();
            timer.Interval = new TimeSpan(0, 0, 1);
            timer.Tick    += Timer_Tick;
            await camera.AutoFocus();

            timer.Start();
        }