Suporte de Automação de Interface de Usuário para o Tipo de Controle Item de Lista
Observação
Esta documentação destina.Os desenvolvedores do NET Framework que desejam usar o gerenciado UI Automation classes definidas na System.Windows.Automation namespace.As informações mais recentes sobre UI Automation, consulte API de automação do Windows: Automação da interface do usuário.
Este tópico fornece informações sobre UI Automation suporte para o ListItem o tipo de controle. In UI Automation, a control type is a set of conditions that a control must meet in order to use the ControlTypeProperty property. As condições incluem as diretrizes específicas para UI Automation estrutura de árvore, UI Automation os valores de propriedade e padrões de controle.
List item controls are an example of controls that implement the ListItem control type.
The following sections define the required UI Automation tree structure, properties, control patterns, and events for the ListItem control type. The UI Automation requirements apply to all list controls, whether Windows Presentation Foundation (WPF), Win32, or Windows Forms.
Este tópico contém as seguintes seções.
- Required UI Automation Tree Structure
- Required UI Automation Properties
- Required UI Automation Control Patterns
- Required UI Automation Events
- Tópicos relacionados
Required UI Automation Tree Structure
The following table depicts the control view and the content view of the UI Automation tree that pertains to list item controls and describes what can be contained in each view. For more information on the UI Automation tree, see Visão geral da árvore de automação de interface do usuário.
Control View |
Content View |
---|---|
ListItem
|
ListItem |
The children of a list item control within the content view of the UI Automation tree must always be "0". If the structure of the control is such that other items are contained underneath the list item then it should follow the requirements for the Suporte de Automação de Interface de Usuário para o Tipo de Controle TreeItem control type.
Required UI Automation Properties
The following table lists the UI Automation properties whose value or definition is especially relevant to list item controls. For more information on UI Automation properties, see UI Automation Properties for Clients.
UI Automation Property |
Value |
Notes |
---|---|---|
See notes. |
The value of this property needs to be unique across all controls in an application. |
|
See notes. |
This value of this property should include the area of the image and text contents of the list item. |
|
Depends |
If the list control has a clickable point (a point that can be clicked to cause the list to take focus) then that point must be exposed through this property. If the list control is completely covered by descendant list items it will raise a NoClickablePointException to indicate that the client must ask an item inside the list control for a clickable point. |
|
See notes. |
The value of a list item control's name property comes from the text contents of the item. |
|
See notes. |
If there is a static text label then this property must expose a reference to that control. |
|
ListItem |
This value is the same for all UI frameworks. |
|
"list item" |
Localized string corresponding to the ListItem control type. |
|
True |
The list control is always included in the content view of the UI Automation tree. |
|
True |
The list control is always included in the control view of the UI Automation tree. |
|
True |
If the container can accept keyboard input then this property value should be true. |
|
"" |
O texto de ajuda para os controles de lista deve explicar por que o usuário é solicitado a fazer uma escolha de uma lista de opções, que geralmente é o mesmo tipo de informação apresentada por meio de uma dica de ferramenta. Por exemplo, "Selecione um item para definir a resolução de vídeo para o monitor". |
|
Depends |
This property should be exposed for list item controls that are representing an underlying object. These list item controls typically have an icon associated with the control that users associate with the underlying object. |
|
Depends |
This property must return a value for whether the list item is currently scrolled into view within the parent container that implements Scroll control pattern. |
Required UI Automation Control Patterns
The following table lists the UI Automation control patterns required to be supported by list item controls. For more information on control patterns, see Visão Geral de Padrões de Controle de Automação de Interface de Usuário.
Padrão de controle |
Support |
Notes |
---|---|---|
Yes |
List item control must implement this control pattern. This allows list items controls to convey when they are selected. |
|
Depends |
If the list item is contained within a container that is scrollable then this control pattern must be implemented. |
|
Depends |
If the list item is checkable and the action does not perform a selection state change then this control pattern must be implemented. |
|
Depends |
If the item can be manipulated to show or hide information then this control pattern must be implemented. |
|
Depends |
If the item can be edited then this control pattern must be implemented. Changes to the list item control will cause changes to the values of NameProperty, and Value. |
|
Depends |
If item to item spatial navigation is supported within the list container and the container is arranged in rows and columns then the Grid Item control pattern must be implemented. |
|
Depends |
If the item has a command that can be performed on it, separate from selection, then this pattern must be implemented. This is typically an action associated with double-clicking the list item control. Examples would be launching a document from Microsoft Windows Explorer, or playing a music file in Microsoft Windows Media Player. |
Required UI Automation Events
The following table lists the UI Automation events required to be supported by all list item controls. For more information on events, see Visão geral sobre eventos de automação de interface do usuário.
UI Automation Event |
Support |
Notes |
---|---|---|
Depends |
None |
|
Required |
None |
|
Required |
None |
|
Required |
None |
|
BoundingRectangleProperty property-changed event. |
Required |
None |
IsOffscreenProperty property-changed event. |
Required |
None |
IsEnabledProperty property-changed event. |
Required |
None |
Required |
None |
|
ItemStatusProperty property-changed event. |
Depends |
None |
ExpandCollapseStateProperty property-changed event. |
Depends |
None |
ValueProperty property-changed event. |
Depends |
None |
ToggleStateProperty property-changed event. |
Depends |
None |
Required |
None |
|
Required |
None |
Consulte também
Referência
Conceitos
Visão Geral dos Tipos de Controle de Automação de Interface do Usuário