我正在开发 Windows Phone 应用程序,我需要一个简单的二维码阅读器。我正在关注 a tutorial .
我都做了,现在我必须补充
private PhotoCamera camera;
但是总是出现这个错误:
The type or namespace name 'PhotoCamera' could not be found (are you missing a using directive or an assembly reference?)
为什么会出现此错误?
最佳答案
确保你添加使用:
using Microsoft.Devices;
因为 PhotoCamera
类可从 Microsoft.Devices
命名空间获得。否则你需要使用完全限定的类名:
private Microsoft.Devices.PhotoCamera camera;
关于c# - Windows Phone 二维码阅读器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21781298/