我无法记录一些控件,我该怎么办? [英] I cannot record some control, how should I do ?

查看:68
本文介绍了我无法记录一些控件,我该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在生成代码时收到消息"

 

I get the message when I generate code "

 

 

//最后一个操作未被记录,因为控件
的名称为'MomentumDMS.Views.MajorUnits .Receiving.ReceivingPageDisplay'和ControlType'Row'没有任何良好的识别属性。"

我该怎么办?

谢谢

推荐答案

这是您正在测试的WPF或Silverlight应用程序吗?

Is this a WPF or silverlight app you are testing?

要解决此问题,您需要覆盖类"MomentumDMS.Views"的ToString。 MajorUnits.Receiving.ReceivingPageDisplay"返回类的唯一属性(此类在您的应用程序中用于数据绑定数据网格)。

To over come this problem you need to override the ToString of class "'MomentumDMS.Views.MajorUnits.Receiving.ReceivingPageDisplay" to return unique property of the class (this class is used in your application to databind the datagrid).

参见http://msdn.microsoft.com/en-us/library/gg413373.aspx  (

 


这篇关于我无法记录一些控件,我该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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