예제 #1
0
 private void CameraPreviewControl_PreviewFailed(object sender, PreviewFailedEventArgs e)
 {
     if (_errorMessageText != null)
     {
         _errorMessageText.Text = e.Error;
     }
 }
 // Register for PreviewFailed to get failure error information.
 private async void CameraPreviewControl_PreviewFailed(object sender, PreviewFailedEventArgs e)
 {
     await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         iErrorMessage.Text = e.Error;
     });
 }
예제 #3
0
 /// <summary>
 /// Triggered when something wrong happens with the camera preview control.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private async void UICameraPreview_PreviewFailed(object sender, PreviewFailedEventArgs e)
 {
     await new MessageDialog(e.Error).ShowAsync();
 }
 private void CameraPreviewControl_PreviewFailed(object sender, PreviewFailedEventArgs e)
 {
     var errorMessage = e.Error;
 }
예제 #5
0
 private void CameraPreviewControl_PreviewFailed(object sender, PreviewFailedEventArgs e)
 {
     tbkTip.Text = Constants.GetString("no_camera_found");
 }