DockPanel::SetDock Method (UIElement^, Dock)
.NET Framework (current version)
Sets the value of the Dock attached property to a specified element.
Assembly: PresentationFramework (in PresentationFramework.dll)
Parameters
- element
-
Type:
System.Windows::UIElement^
The element to which the attached property is written.
- dock
-
Type:
System.Windows.Controls::Dock
The needed Dock value.
The SetDock method changes the position of a child element relative to other child elements within the same container. Alignment properties, such as HorizontalAlignment, change the position of a child element relative to its parent element.
.NET Framework
Available since 3.0
Available since 3.0
Show: