DataGrid给出错误 [英] DataGrid gives error

查看:128
本文介绍了DataGrid给出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用时

When I am using

<datagrid></datagrid>  

在VS 2008中,它会显示错误短信,如下所示:

错误1标记``DataGrid''在XML名称空间``http://schemas.microsoft.com/winfx/2006/xaml/presentation''中不存在.
我也没有在参考列表中找到任何参考.如何解决此问题

in VS 2008 it''s gives an Error sms as:

Error 1 The tag ''DataGrid'' does not exist in XML namespace ''http://schemas.microsoft.com/winfx/2006/xaml/presentation''.

I have not found any reference in reference list too. How to solve this

推荐答案

您需要引用"clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"


感谢Abhinav.
但是这里没有任何程序集,如System.Windows.Controls.Data.我使用的是VS2008.该怎么办?
Thanks Abhinav.
But there is not any assembly as System.Windows.Controls.Data here.I am using VS 2008. What to do??


刚刚解决了这个问题.
下载并安装了VS 2008的wpf工具包.
Just solved the problem.
Downloaded wpf toolkit for VS 2008 and installed.


这篇关于DataGrid给出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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