c#GridViewColumns缺少程序集引用

Bri*_*ian 5 c# assembly-references .net-4.5 visual-studio-2013

我试图在Visual Studio 2013,.net 4.5中使用'System.Windows.Controls.GridViewColumn',但我收到此错误:

找不到类型'GridViewColumn'.验证您是否缺少程序集引用,并且已构建所有引用的程序集.

在我的参考管理器中查看,我在"装配"选项卡下显示以下消息:

所有框架程序集都已引用.请使用对象浏览器来探索框架中的引用.

当我浏览时,我找不到'PresentationFramework.dll'.这是该类的MSDN:http://msdn.microsoft.com/en-us/library/system.windows.controls.gridviewcolumn(v=vs.110).aspx

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;
Run Code Online (Sandbox Code Playgroud)

我试图添加using System.Windows.Controls.GridViewColumn但收到此错误:

命名空间Controls中不存在 类型或命名空间名称System.Windows(您是否缺少程序集引用?)

编辑:

对于WhyCry,当我按照你的建议进行搜索时,我仍然没有得到任何结果. 在此输入图像描述 也许我需要使用不同的GridView?也许Windows.UI.Xaml.Controls

Mat*_*att 3

当您创建基于WinRT 的Windows 应用商店应用程序时,此 GridViewColumn 控件是 WPF 控件之一。

WPF 和 WinRT 是互斥的,您不能在 Windows 应用商店应用程序中使用 WPF 控件。请阅读以下内容:Windows 8 应用商店应用程序对比。WPF应用程序