Class DockPanel
Defines an area where you can arrange child elements either horizontally or vertically, relative to each other.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public class DockPanel : Panel
Fields
| Improve this Doc View SourceDockProperty
Identifies the DockPanel.Dock attached property.
Declaration
public static readonly DependencyProperty DockProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
LastChildFillProperty
Identifies the DockPanel.LastChildFill dependency property.
Declaration
public static readonly DependencyProperty LastChildFillProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceLastChildFill
Gets or sets a value that indicates whether the last child element within a DockPanel stretches to fill the remaining available space.
Declaration
public bool LastChildFill { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceArrangeOverride(Size)
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
Size | finalSize |
Returns
Type | Description |
---|---|
Size |
Overrides
| Improve this Doc View SourceCreateUIElementCollection(FrameworkElement)
Declaration
protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
Parameters
Type | Name | Description |
---|---|---|
FrameworkElement | logicalParent |
Returns
Type | Description |
---|---|
UIElementCollection |
Overrides
| Improve this Doc View SourceGetDock(DependencyObject)
Gets the value of the DockPanel.Dock attached property for a specified System.Windows.UIElement.
Declaration
public static Dock GetDock(DependencyObject element)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The element from which the property value is read. |
Returns
Type | Description |
---|---|
Dock | The DockPanel.Dock property value for the element. |
INTERNAL_OnAttachedToVisualTree()
Declaration
protected override void INTERNAL_OnAttachedToVisualTree()
Overrides
| Improve this Doc View SourceINTERNAL_OnDetachedFromVisualTree()
Declaration
protected override void INTERNAL_OnDetachedFromVisualTree()
Overrides
| Improve this Doc View SourceMeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
Size | availableSize |
Returns
Type | Description |
---|---|
Size |
Overrides
| Improve this Doc View SourceSetDock(DependencyObject, Dock)
Sets the value of the DockPanel.Dock attached property to a specified element.
Declaration
public static void SetDock(DependencyObject element, Dock dock)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | element | The element to which the attached property is written. |
Dock | dock | The needed Dock value. |