title: How to use ZXing Barcode Scanner in a Xamarin Forms app?
body: <p>I'm trying to figure out how use to use <a href="https://www.nuget.org/packages/ZXing.Net.Mobile/" rel="nofollow">ZXing Barcode Scanner</a> nuget package in a simple Xamarin Forms application.</p>
  
  <p>I'm trying to have a large area of my form show what my camera is seeing .. and if it scan's something.. then stop scanning and goto the next Page.</p>
  
  <p>All the examples basically show this:</p>
  
  <pre><code>buttonScan.Click += (sender, e) =&gt; {
  
      var scanner = new ZXing.Mobile.MobileBarcodeScanner();
      var result = await scanner.Scan();
  
      if (result != null)
          Console.WriteLine("Scanned Barcode: " + result.Text);
  };
  </code></pre>
  
  <p>but I don't understand what the actual view/control/widget which gets displayed onto the actual page, is? Like a big square with the camera contents getting displayed etc.</p>
  
  <p>What is the trick to drop a control onto the page .. which I can then wire up to scan whatever the camera is 'seeing' .. and hopefully it will 'read' the barcode or qrcode?</p>