DockPanel Class

Definition

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

C#
public class DockPanel : Microsoft.UI.Xaml.Controls.Panel
Inheritance
Microsoft.UI.Xaml.Controls.Panel
DockPanel

Constructors

Fields

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

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

Methods

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

Produit Versions
Windows Community Toolkit 7.0.0