我正在使用VS2013编写Windows Phone摄像头应用程序。

在xaml文件中,找不到错误消息。

有人知道我需要添加什么程序集引用吗?

我的参考是


.NET for Windows应用商店
微软电话
微软Xna框架
PresentationCore
展示框架
Windows Phone 8.1


我使用的命名空间是:

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using Microsoft.Devices;
using Microsoft.Xna.Framework.Media;


谢谢!

最佳答案

我认为:

您应该使用CaptureElement控件:http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.captureelement.aspx

从:
Can't use videoBrush windows phone 8.1. Visual studio 2013 doesn't see System.Windows.Media

09-30 17:15
查看更多