Compartilhar via


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

AutomationIdProperty

See notes.

The value of this property needs to be unique across all controls in an application.

BoundingRectangleProperty

See notes.

The outermost rectangle that contains the whole control.

ClickablePointProperty

See notes.

The window control must have a clickable point that will result in causing the window to become selected or unselected.

ControlTypeProperty

Window

This value is the same for all UI frameworks.

IsContentElementProperty

True

The window control must always be content.

IsControlElementProperty

True

The window control must always be a control.

IsKeyboardFocusableProperty

See notes.

If the control can receive keyboard focus, it must support this property.

LabeledByProperty

null

Window controls do not have a static Window label.

LocalizedControlTypeProperty

"window"

Localized string corresponding to the Window control type.

NameProperty

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

IDockProvider

Conditional

Must be supported if the window has the ability to be docked.

ITransformProvider

Required

Enables the window to be moved, resized, or rotated on the screen.

IWindowProvider

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

AsyncContentLoadedEvent

Required

None

AutomationFocusChangedEvent

Required

None

BoundingRectangleProperty property-changed event.

Required

None

IsEnabledProperty property-changed event.

Required

None

IsOffscreenProperty property-changed event.

Required

None

LayoutInvalidatedEvent

Required

None

NameProperty property-changed event.

Required

None

StructureChangedEvent

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

WindowClosedEvent

Required

None

WindowOpenedEvent

Required

None

WindowVisualStateProperty property-changed event.

Depends

None

Consulte também

Referência

Window

Conceitos

Visão Geral dos Tipos de Controle de Automação de Interface do Usuário

UI Automation Overview