Edit

DockPanel Class

Definition

Defines an area where you can arrange child elements either horizontally or vertically, relative to each other.

public class DockPanel : Microsoft.UI.Xaml.Controls.Panel
type DockPanel = class
    inherit Panel
Public Class DockPanel
Inherits Panel
Inheritance
Microsoft.UI.Xaml.Controls.Panel
DockPanel

Constructors

Name Description
DockPanel()

Fields

Name Description
DockProperty

Gets or sets a value that indicates the position of a child element within a parent DockPanel.

LastChildFillProperty

Identifies the LastChildFill dependency property.

PaddingProperty

Identifies the Padding dependency property.

Properties

Name Description
LastChildFill

Gets or sets a value indicating whether the last child element within a DockPanel stretches to fill the remaining available space.

Padding

Gets or sets the distance between the border and its child object.

Attached Properties

Name Description
Dock

Methods

Name Description
ArrangeOverride(Size) Microsoft.UI.Xaml.Controls.Panel.ArrangeOverride(Windows.Foundation.Size)
GetDock(FrameworkElement)

Gets DockProperty attached property

MeasureOverride(Size) Microsoft.UI.Xaml.Controls.Panel.MeasureOverride(Windows.Foundation.Size)
SetDock(FrameworkElement, Dock)

Sets DockProperty attached property

Applies to