O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Scanning a QR code

Do you use QR codes as a fast way of accessing websites? If so, it is really good news that you can add a QR code scanning feature directly in your application. In this recipe, you will learn how to do it using the additional library.

As an example, you will create a simple application that will launch the QR scanner. When the result is found, a new page will be opened and the result will be presented in the text block.

Getting ready

To step through this recipe, you only need the automatically generated project.

How to do it...

To prepare an example that makes it possible to scan QR codes using a camera and the additional library, perform the following steps:

  1. Enable the Webcam capability by double-clicking on the Package.appxmanifest ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required