UIAutomation查询 [英] UIAutomation query

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

问题描述

嗨:

我正在为某些自定义控件实现UIAutomation提供程序. DataGrid控件类型和Table控件类型之间有什么区别,从文档看来似乎并不明显!

I'm in the process of implementing UIAutomation providers for some custom controls. What is the difference between the DataGrid control type and the Table control type, it doesn't seem that obvious from the documentation!

我要处理的控件是网格,因此我考虑使用DataGrid控件类型,但是用户可以在网格中切换,因此如果表类型更合适,我将改用它

The control I'm dealing with is a grid, so I was thinking of using the DataGrid control type, but the user is able to tab through the grid, so if the table type is more appropriate I'll use that instead.

欢迎/表示欢迎.

Sean.

推荐答案

肖恩,

前几天,我们在我的团队中进行了激烈的讨论.我同意区别是细微的.

We had a vigorous discussion about this on my team just the other day.  I agree that the difference is subtle.

这是我们要去的地方

  • 网格控制模式和表格之间有明显的区别 控制模式.表有标题;网格没有.因此,至少您知道要公开哪种控制模式.
  • 文档说,DataGrid包含DataItems,但是Table几乎可以包含任何东西.
  • 因此,您可能会考虑要显示的网格项目是真正的数据还是其他东西.如果它基本上是数据表,请使用DataGrid控件类型.即使是带有一些用于编辑数据的控件的数据表也是如此. 仍然是DataGrid.但是用于其他用途(例如布局)的表是表控件类型.
  • There is a clear distinction between the Grid control pattern and the Table control pattern.  Tables have headers; Grids don't.  So, at least you know which control pattern to expose.
  • The docs say that a DataGrid contains DataItems, but a Table can contain almost anything. 
  • So, you might consider whether the grid items you are going to show are really pieces of data, or really something else.  If it's basically a data table, use DataGrid Control Type.  Even a data table with some controls for editing the data is still a DataGrid.  But a table for other purposes, such as layout, is a Table Control Type.

谢谢,
迈克尔

Thanks,
Michael


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

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