Compartilhar via


UI Automation Support for the Pane Control Type

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 painel de 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.

The Pane control type is used to represent an object within a frame or document window. Users can navigate between pane controls and within the contents of the current pane, but cannot navigate between items in different panes. Thus, pane controls represent a level of grouping lower than windows or documents, but above individual controls. The user navigates between panes by pressing TAB, F6, or CTRL+TAB, depending on the context. O tipo de painel de controle não é necessária nenhuma navegação de teclado específicas.

The following sections define the required UI Automation tree structure, properties, control patterns, and events for the Pane 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
  • Pane Control Type Example
  • 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 pane 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

Pane

Pane

Required UI Automation Properties

The following table lists the UI Automation properties whose value or definition is especially relevant to pane controls. For more information on UI Automation properties, see 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.

IsKeyboardFocusableProperty

See notes.

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

NameProperty

See notes.

The value for this property must always be a clear, concise and meaningful title.

ClickablePointProperty

See notes.

This property exposes a clickable point of the pane control that causes the pane to become focused when it is clicked.

LabeledByProperty

See notes.

Pane controls typically do not have a static label. If there is a static text label, it should be exposed through this property.

ControlTypeProperty

Pane

This value is the same for all UI frameworks.

LocalizedControlTypeProperty

"pane"

Localized string corresponding to the Pane control type.

IsContentElementProperty

True

Pane controls are always included in the content view of the UI Automation tree.

IsControlElementProperty

True

Pane controls are always included in the control view of the UI Automation tree.

HelpTextProperty

""

The help text for pane controls should explain why the purpose of the frame and how it relates to other frames. A description is necessary if the purpose and relationship of frames is not clear from the value of the NameProperty. "

AccessKeyProperty

See notes.

If a specific key combination gives focus to the pane then that information should be exposed through this property.

Required UI Automation Control Patterns

The following table lists the UI Automation control patterns required to be supported by all pane 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

ITransformProvider

Depends

Implement this control pattern if the pane control can be moved, resized, or rotated on the screen.

IWindowProvider

Never

If you need to implement this control pattern, your control should be based on the Window control type.

IDockProvider

Depends

Implement this control pattern if the pane control can be docked.

IScrollProvider

Depends

Implemente esse padrão de controle se o controle do painel pode ser rolado.

Required UI Automation Events

The following table lists the UI Automation events required to be supported by all pane controls. For more information on events, see Visão geral sobre eventos de automação de interface do usuário.

UI Automation Event

Support/Value

Notes

WindowClosedEvent

Never

None

WindowOpenedEvent

Never

None

AsyncContentLoadedEvent

Required

None

BoundingRectangleProperty property-changed event.

Required

None

IsOffscreenProperty property-changed event.

Required

None

IsEnabledProperty property-changed event.

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

WindowVisualStateProperty property-changed event.

Never

None

AutomationFocusChangedEvent

Required

None

StructureChangedEvent

Required

None

Pane Control Type Example

The following image illustrates a control that implements the Pane control type.

Captura de tela de janela de miniaplicativo com dois painéis

UI Automation Tree - Control View

UI Automation Tree - Content View

  • Pane

  • Tree (Scroll Pattern)

    • TreeItem

    • Pane

    • Editar (padrão de rolagem

  • Pane

  • Tree (Scroll Pattern)

  • TreeItem

  • …Painel

  • Edit

  • (Padrão de rolagem)

Consulte também

Referência

Pane

Conceitos

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

UI Automation Overview