为什么有些AutomationPeer是密封的?

随
订阅者
297
文章
0
粉丝
测试交流评论147字数 107阅读0分21秒阅读模式
摘要我有一个DataGrid,其中DataGridRow中存在一个附加参数。我想用FlaUi测试这个参数。我已经读了一些AutomationPeers的文章。据我所知,你必须。。。

我有一个DataGrid,其中DataGridRow中存在一个附加参数。我想用FlaUi测试这个参数。我已经读了一些AutomationPeers的文章。据我所知,您必须创建一个新的AutomationPeer,并在那里提供参数。我的问题是DataGridRowAutomationPeer是密封的,我无法从中派生。有人知道微软为什么这么做吗?还有可能有更简单的变体吗?

提前感谢:-)文章源自玩技e族-https://www.playezu.com/180089.html 文章源自玩技e族-https://www.playezu.com/180089.html

 
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定

拖动滑块以完成验证