title: ZXing.Net.Mobile Sample.WindowsUniversal Sample Not Scanning
body: <p>Testing this to incorporate into Win 10 UWP app to scan 1D barcodes (format 39 &amp; 128).  I have updated latest through nuget 2.0.4.46.  Referenced post at <a href="http://www.yortondotnet.com/2015/07/mobile-barcode-scanning-with-zxingnet.html" rel="nofollow">http://www.yortondotnet.com/2015/07/mobile-barcode-scanning-with-zxingnet.html</a> regarding some options setting prior to scan() with no luck.  The scanner (camera) opens but never recognizes a barcode scan successfully - or failure for that matter.  It seems nothing is happening whatsoever.  I have included straight, pertinent sample code with some options modifications for review.  I have gotten Scandit API to work and was going to try Manateeworks but both are really costly and not an option.  I am developing on Surface Pro 3 (Win 10) and that build will also be target machines when complete.</p>
  
  <pre><code>public sealed partial class MainPage : Page
  {
      UIElement customOverlayElement = null;
      MobileBarcodeScanner scanner;
  
      public MainPage()
      {
          this.InitializeComponent();
  
          //Create a new instance of our scanner
          scanner = new MobileBarcodeScanner(this.Dispatcher);
          scanner.Dispatcher = this.Dispatcher;
      }
  
      private void buttonScanDefault_Click(object sender, RoutedEventArgs e)
      {
          //Tell our scanner to use the default overlay
          scanner.UseCustomOverlay = false;
          //We can customize the top and bottom text of our default overlay
          scanner.TopText = "Hold camera up to barcode";
          scanner.BottomText = "Camera will automatically scan barcode\r\n\r\nPress the 'Back' button to Cancel";
  
          // GWS Set Options
          var options = new MobileBarcodeScanningOptions();
          options.PossibleFormats = new List&lt;ZXing.BarcodeFormat&gt;() {
              ZXing.BarcodeFormat.CODE_39, ZXing.BarcodeFormat.CODE_128
          };
          options.AutoRotate = false;
          options.TryHarder = false;
          options.TryInverted = false;
  
          //Start scanning
          scanner.Scan(options).ContinueWith(t =&gt;
          {
              if (t.Result != null)
                  HandleScanResult(t.Result);
          });
      }
      private void buttonScanContinuously_Click(object sender, RoutedEventArgs e)
      {
          //Tell our scanner to use the default overlay
          scanner.UseCustomOverlay = false;
          //We can customize the top and bottom text of our default overlay
          scanner.TopText = "Hold camera up to barcode";
          scanner.BottomText = "Camera will automatically scan barcode\r\n\r\nPress the 'Back' button to Cancel";
  
          // GWS Set Options
          var options = new MobileBarcodeScanningOptions();
          options.PossibleFormats = new List&lt;ZXing.BarcodeFormat&gt;() {
              ZXing.BarcodeFormat.CODE_39, ZXing.BarcodeFormat.CODE_128
          };
          options.AutoRotate = false;
          options.TryHarder = false;
          options.TryInverted = false;
  
          //Start scanning
          scanner.ScanContinuously(options, async (result) =&gt;
          {
              var msg = "Found Barcode: " + result.Text;
  
              await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, async () =&gt;
              {
                  await MessageBox(msg);
              });
          });
      }
      async void HandleScanResult(ZXing.Result result)
      {
          string msg = "";
  
          if (result != null &amp;&amp; !string.IsNullOrEmpty(result.Text))
              msg = "Found Barcode: " + result.Text;
          else
              msg = "Scanning Canceled!";
  
          await MessageBox(msg);
  
      }
  </code></pre>
  
  <p>}</p>