QR Code Reader for Windows Phone

I am working on a Windows Phone application and I need a simple QR code reader. I follow the tutorial .

I did everything and now I have to add

private PhotoCamera camera;

But there is always this error:

The type or namespace name 'PhotoCamera' could not be found (are you missing a using directive or an assembly reference?)

Why am I getting this error?

+4
source share
2 answers

Make sure you add:

using Microsoft.Devices;

since the class PhotoCamerais accessible from the namespace Microsoft.Devices. Otherwise, you will need to use a fully qualified class name:

private Microsoft.Devices.PhotoCamera camera;
+3
source

The required use is probably missing:

using Microsoft.Devices;
+2
source

Source: https://habr.com/ru/post/1526955/


All Articles