我正在尝试在 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;
我尝试添加using System.Windows.Controls.GridViewColumn
但收到此错误:
Controls
命名空间中不存在 类型或命名空间名称System.Windows
(您是否缺少程序集引用?)
编辑:
对于WhyCry,当我按照您的建议进行搜索时,我仍然没有得到任何结果。
也许我需要使用不同的 GridView?也许
Windows.UI.Xaml.Controls
?