CameraCaptureUI类不适用于Windows 10? [英] CameraCaptureUI class is not available for Windows 10?

查看:183
本文介绍了CameraCaptureUI类不适用于Windows 10?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用CamereCaptureUI类,但msdn
文档
显示它可供Windows 10使用。请建议我,我知道我们可以使用MediaCapture API来访问相机,但我想让相机像默认相机的外观和感觉。

I am not able to use CamereCaptureUI class, but the msdn documentation showing it is available to Windows 10. Please suggest me, I know we can use MediaCapture API to access camera, but I want to have camera like default camera look and feel.

谢谢,

Pallam Madhukar Windows电话开发者

Pallam Madhukar Windows Phone Developer

推荐答案

从您上面发布的文件中,您会发现  CameraCaptureUI
类仅在Windows应用商店应用中受支持,Windows Phone应用不支持。因此,如果您使用一个通用应用程序,则需要添加对适用于通用应用程序平台的Microsoft桌面扩展SDK 的引用,以编写仅在PC设备上运行的代码
。 

From the document you posted above, you will find that the CameraCaptureUI class is only supported in Windows Store app, it is not supported in Windows Phone app. So if you work with one Universal App, you need to add reference to Microsoft Desktop Extension SDK for Universal App Platform to write code that runs on only on a PC device. 

因此,您需要使用Extension参考来更正您的问题。请参阅:

So, you need to the Extension reference to correct your issue. See:


这篇关于CameraCaptureUI类不适用于Windows 10?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆