private void Scanning()
 {
     try
     {
         cameraPreview.LayoutParameters.Height = 800;
         cameraPreview.RequestLayout();
         cameraSource.Start(cameraPreview.Holder);
         Toast.MakeText(Application.Context, txtResult.Text, ToastLength.Short).Show();
     }
     catch (InvalidOperationException)
     {
         Toast.MakeText(this, "Problem", ToastLength.Long).Show();
     }
 }