Suporte de Automação de Interface de Usuário para o Tipo de Controle Window
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 a janela 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 valores de propriedade e padrões de controle.
The window control consists of the window frame, which contains child objects such as title bar, client, and other objects.
The UI Automation requirements in the following sections apply to all controls that implement the Window control type, 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
A tabela a seguir ilustra o modo de exibição do controle e o a exibir conteúdo da UI Automation árvore que diz respeito aos controles de janela e descreve o que pode estar contido em cada exibição. 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 |
---|---|
Window |
Window |
Required UI Automation Properties
The following table lists the UI Automation properties whose value or definition is especially relevant to window controls. Para obter mais informações sobre UI Automation Propriedades, consulte 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. |
The outermost rectangle that contains the whole control. |
|
See notes. |
The window control must have a clickable point that will result in causing the window to become selected or unselected. |
|
Window |
This value is the same for all UI frameworks. |
|
True |
The window control must always be content. |
|
True |
The window control must always be a control. |
|
See notes. |
If the control can receive keyboard focus, it must support this property. |
|
null |
Window controls do not have a static Window label. |
|
"window" |
Localized string corresponding to the Window control type. |
|
See notes. |
The window control always contains a primary Window element that relates to what the user would associate as the most semantic identifier for the item. |
Required UI Automation Control Patterns
The following table lists the UI Automation control patterns required to be supported by window 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 |
---|---|---|
Conditional |
Must be supported if the window has the ability to be docked. |
|
Required |
Enables the window to be moved, resized, or rotated on the screen. |
|
Required |
Enables specific operations for the window. |
Required UI Automation Events
The following table lists the UI Automation events required to be supported by all window controls. For more information about events, see Visão geral sobre eventos de automação de interface do usuário.
UI Automation Event |
Support |
Notes |
---|---|---|
Required |
None |
|
Required |
None |
|
BoundingRectangleProperty property-changed event. |
Required |
None |
IsEnabledProperty property-changed event. |
Required |
None |
IsOffscreenProperty property-changed event. |
Required |
None |
Required |
None |
|
NameProperty property-changed event. |
Required |
None |
Required |
None |
|
HorizontallyScrollableProperty property-changed event. |
Depends |
None |
HorizontalScrollPercentProperty property-changed event. |
Depends |
None |
HorizontalViewSizeProperty property-changed event. |
Depends |
None |
VerticalScrollPercentProperty property-changed event. |
Depends |
None |
VerticallyScrollableProperty property-changed event. |
Depends |
None |
VerticalViewSizeProperty property-changed event. |
Depends |
None |
Required |
None |
|
Required |
None |
|
WindowVisualStateProperty property-changed event. |
Depends |
None |
Consulte também
Referência
Conceitos
Visão Geral dos Tipos de Controle de Automação de Interface do Usuário