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; }); }
/// <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; }
private void CameraPreviewControl_PreviewFailed(object sender, PreviewFailedEventArgs e) { tbkTip.Text = Constants.GetString("no_camera_found"); }