Implementing the UI Automation Dock Control Pattern
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.
This topic introduces guidelines and conventions for implementing IDockProvider, including information about properties. Links to additional references are listed at the end of the topic.
The DockPattern control pattern is used to expose the dock properties of a control within a docking container. A docking container is a control that allows you to arrange child elements horizontally and vertically, relative to each other. For examples of controls that implement this control pattern, see Mapeamento de Padrão de Controles para Clientes de Automação de IU.
Docking Example from Visual Studio Where "Class View" Window Is DockPosition.Right and "Error List" Window Is DockPosition.Bottom
Este tópico contém as seguintes seções.
- Implementation Guidelines and Conventions
- Required Members for IDockProvider
- Exceptions
- Tópicos relacionados
Implementation Guidelines and Conventions
When implementing the Dock control pattern, note the following guidelines and conventions:
IDockProvider does not expose any properties of the docking container or any properties of controls that are docked adjacent to the current control within the docking container.
Controls are docked relative to each other based on their current z-order; the higher their z-order placement, the farther they are placed from the specified edge of the docking container.
If the docking container is resized, any docked controls within the container will be repositioned flush to the same edge to which they were originally docked. The docked controls will also resize to fill any space within the container according to the docking behavior of their DockPosition. For example, if Top is specified, the left and right sides of the control will expand to fill any available space. If Fill is specified, all four sides of the control will expand to fill any available space.
On a multi-monitor system, controls should dock to the left or right side of the current monitor. If that is not possible, they should dock to the left side of the leftmost monitor or the right side of the rightmost monitor.
Required Members for IDockProvider
The following properties and methods are required for implementing the IDockProvider interface.
Required members |
Member type |
Notes |
---|---|---|
Property |
None |
|
Method |
None |
This control pattern has no associated events.
Exceptions
Providers must throw the following exceptions.
Exception type |
Condition |
---|---|
|
Consulte também
Tarefas
Support Control Patterns in a UI Automation Provider
Conceitos
Visão Geral de Padrões de Controle de Automação de Interface de Usuário