我试图在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?