Partager via


DockPosition Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Contains values that specify the dock position of an object within a docking container.

Namespace:  System.Windows.Automation
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Enumeration DockPosition
public enum DockPosition

Members

Member name Description
Supported by Silverlight for Windows Phone Top Indicates that the UI automation element is docked along the top edge of the docking container.
Supported by Silverlight for Windows Phone Left Indicates that the UI automation element is docked along the left edge of the docking container.
Supported by Silverlight for Windows Phone Bottom Indicates that the UI automation element is docked along the bottom edge of the docking container.
Supported by Silverlight for Windows Phone Right Indicates that the UI automation element is docked along the right edge of the docking container.
Supported by Silverlight for Windows Phone Fill Indicates that the UI automation element is docked along all edges of the docking container and fills all available space within the container.
Supported by Silverlight for Windows Phone None Indicates that the UI automation element is not docked to any edge of the docking container

Remarks

A docking container is a control that allows the arrangement of child elements (horizontally and vertically) relative to the boundaries of the docking container and of other elements within the container.

No existing control in Silverlight implements the IDockProvider pattern for its peer. In WPF, the IDockProvider pattern is potentially used for controls such as toolbars or menus.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.