.NET Framework 4.5
 
其他版本
 
评价此主题
 

 

定义您可水平或垂直排列子元素的区域,互相。

 

命名空间:  System.Windows.Controls
程序集:  PresentationFramework(在 PresentationFramework.dll 中)
XAML 的 XMLNS: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
语法
 
 
public class DockPanel : Panel
 
<DockPanel>
  Children
</DockPanel>

DockPanel 类型公开以下成员。

显示: 
  名称 说明
DockPanel DockPanel 类的新实例。
页首
属性
 
显示: 
  名称 说明
ActualHeight FrameworkElement。)
ActualWidth FrameworkElement。)
AllowDrop UIElement。)
AreAnyTouchesCaptured UIElement。)
AreAnyTouchesCapturedWithin UIElement。)
AreAnyTouchesDirectlyOver UIElement。)
AreAnyTouchesOver UIElement。)
Background Panel。)
BindingGroup FrameworkElement。)
BitmapEffect 已过时。UIElement。)
BitmapEffectInput 已过时。UIElement。)
CacheMode UIElement。)
Children Panel。)
Clip UIElement。)
ClipToBounds UIElement。)
CommandBindings UIElement。)
ContextMenu FrameworkElement。)
Cursor FrameworkElement。)
DataContext FrameworkElement。)
DefaultStyleKey FrameworkElement。)
DependencyObjectType DependencyObject。)
DesiredSize UIElement。)
Dispatcher DispatcherObject。)
Effect UIElement。)
FlowDirection FrameworkElement。)
Focusable UIElement。)
FocusVisualStyle FrameworkElement。)
ForceCursor FrameworkElement。)
HasAnimatedProperties UIElement。)
HasEffectiveKeyboardFocus UIElement。)
HasLogicalOrientation Panel。)
HasLogicalOrientationPublic Panel。)
Height FrameworkElement。)
HorizontalAlignment FrameworkElement。)
InheritanceBehavior FrameworkElement。)
InputBindings UIElement。)
InputScope FrameworkElement。)
InternalChildren Panel。)
IsArrangeValid UIElement。)
IsEnabled UIElement。)
IsEnabledCore UIElement。)
IsFocused UIElement。)
IsHitTestVisible UIElement。)
IsInitialized FrameworkElement。)
IsInputMethodEnabled UIElement。)
IsItemsHost Panel。)
IsKeyboardFocused UIElement。)
IsKeyboardFocusWithin UIElement。)
IsLoaded FrameworkElement。)
IsManipulationEnabled UIElement。)
IsMeasureValid UIElement。)
IsMouseCaptured UIElement。)
IsMouseCaptureWithin UIElement。)
IsMouseDirectlyOver UIElement。)
IsMouseOver UIElement。)
IsSealed DependencyObject。)
IsStylusCaptured UIElement。)
IsStylusCaptureWithin UIElement。)
IsStylusDirectlyOver UIElement。)
IsStylusOver UIElement。)
IsVisible UIElement。)
Language FrameworkElement。)
LastChildFill DockPanel 拉伸的值。
LayoutTransform FrameworkElement。)
LogicalChildren Panel。)
LogicalOrientation Panel。)
LogicalOrientationPublic Panel。)
Margin FrameworkElement。)
MaxHeight FrameworkElement。)
MaxWidth FrameworkElement。)
MinHeight FrameworkElement。)
MinWidth FrameworkElement。)
Name FrameworkElement。)
Opacity UIElement。)
OpacityMask UIElement。)
OverridesDefaultStyle FrameworkElement。)
Parent FrameworkElement。)
PersistId 已过时。UIElement。)
RenderSize UIElement。)
RenderTransform UIElement。)
RenderTransformOrigin UIElement。)
Resources FrameworkElement。)
SnapsToDevicePixels UIElement。)
Style FrameworkElement。)
StylusPlugIns UIElement。)
Tag FrameworkElement。)
TemplatedParent FrameworkElement。)
ToolTip FrameworkElement。)
TouchesCaptured UIElement。)
TouchesCapturedWithin UIElement。)
TouchesDirectlyOver UIElement。)
TouchesOver UIElement。)
Triggers FrameworkElement。)
Uid UIElement。)
UseLayoutRounding FrameworkElement。)
VerticalAlignment FrameworkElement。)
Visibility UIElement。)
VisualBitmapEffect 已过时。Visual。)
VisualBitmapEffectInput 已过时。Visual。)
VisualBitmapScalingMode Visual。)
VisualCacheMode Visual。)
VisualChildrenCount Panel。)
VisualClearTypeHint Visual。)
VisualClip Visual。)
VisualEdgeMode Visual。)
VisualEffect Visual。)
VisualOffset Visual。)
VisualOpacity Visual。)
VisualOpacityMask Visual。)
VisualParent Visual。)
VisualScrollableAreaClip Visual。)
VisualTextHintingMode Visual。)
VisualTextRenderingMode Visual。)
VisualTransform Visual。)
VisualXSnappingGuidelines Visual。)
VisualYSnappingGuidelines Visual。)
Width FrameworkElement。)
页首
显示: 
  名称 说明
Dock DockPanel中的值。
页首
方法
 
显示: 
  名称 说明
AddHandler(RoutedEvent, Delegate) UIElement。)
AddHandler(RoutedEvent, Delegate, Boolean) UIElement。)
AddLogicalChild FrameworkElement。)
AddToEventRoute UIElement。)
AddVisualChild Visual。)
ApplyAnimationClock(DependencyProperty, AnimationClock) UIElement。)
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) UIElement。)
ApplyTemplate FrameworkElement。)
Arrange UIElement。)
ArrangeCore FrameworkElement。)
ArrangeOverride FrameworkElement.ArrangeOverride(Size)。)
BeginAnimation(DependencyProperty, AnimationTimeline) UIElement。)
BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) UIElement。)
BeginInit FrameworkElement。)
BeginStoryboard(Storyboard) FrameworkElement。)
BeginStoryboard(Storyboard, HandoffBehavior) FrameworkElement。)
BeginStoryboard(Storyboard, HandoffBehavior, Boolean) FrameworkElement。)
BringIntoView() FrameworkElement。)
BringIntoView(Rect) FrameworkElement。)
CaptureMouse UIElement。)
CaptureStylus UIElement。)
CaptureTouch UIElement。)
CheckAccess DispatcherObject。)
ClearValue(DependencyProperty) DependencyObject。)
ClearValue(DependencyPropertyKey) DependencyObject。)
CoerceValue DependencyObject。)
CreateUIElementCollection Panel。)
EndInit FrameworkElement。)
Equals DependencyObject。)
Finalize Object。)
FindCommonVisualAncestor Visual。)
FindName FrameworkElement。)
FindResource FrameworkElement。)
Focus UIElement。)
GetAnimationBaseValue UIElement。)
GetBindingExpression FrameworkElement。)
GetDock UIElement的。
GetHashCode DependencyObject。)
GetLayoutClip FrameworkElement。)
GetLocalValueEnumerator DependencyObject。)
GetTemplateChild FrameworkElement。)
GetType Object。)
GetUIParentCore FrameworkElement。)
GetValue DependencyObject。)
GetVisualChild Panel。)
HitTestCore(GeometryHitTestParameters) UIElement。)
HitTestCore(PointHitTestParameters) UIElement。)
InputHitTest UIElement。)
InvalidateArrange UIElement。)
InvalidateMeasure UIElement。)
InvalidateProperty DependencyObject。)
InvalidateVisual UIElement。)
IsAncestorOf Visual。)
IsDescendantOf Visual。)
Measure UIElement。)
MeasureCore FrameworkElement。)
MeasureOverride FrameworkElement.MeasureOverride(Size)。)
MemberwiseClone Object。)
MoveFocus FrameworkElement。)
OnAccessKey UIElement。)
OnApplyTemplate FrameworkElement。)
OnChildDesiredSizeChanged UIElement。)
OnContextMenuClosing FrameworkElement。)
OnContextMenuOpening FrameworkElement。)
OnCreateAutomationPeer UIElement。)
OnDragEnter UIElement。)
OnDragLeave UIElement。)
OnDragOver UIElement。)
OnDrop UIElement。)
OnGiveFeedback UIElement。)
OnGotFocus FrameworkElement。)
OnGotKeyboardFocus UIElement。)
OnGotMouseCapture UIElement。)
OnGotStylusCapture UIElement。)
OnGotTouchCapture UIElement。)
OnInitialized FrameworkElement。)
OnIsItemsHostChanged Panel。)
OnIsKeyboardFocusedChanged UIElement。)
OnIsKeyboardFocusWithinChanged UIElement。)
OnIsMouseCapturedChanged UIElement。)
OnIsMouseCaptureWithinChanged UIElement。)
OnIsMouseDirectlyOverChanged UIElement。)
OnIsStylusCapturedChanged UIElement。)
OnIsStylusCaptureWithinChanged UIElement。)
OnIsStylusDirectlyOverChanged UIElement。)
OnKeyDown UIElement。)
OnKeyUp UIElement。)
OnLostFocus UIElement。)
OnLostKeyboardFocus UIElement。)
OnLostMouseCapture UIElement。)
OnLostStylusCapture UIElement。)
OnLostTouchCapture UIElement。)
OnManipulationBoundaryFeedback UIElement。)
OnManipulationCompleted UIElement。)
OnManipulationDelta UIElement。)
OnManipulationInertiaStarting UIElement。)
OnManipulationStarted UIElement。)
OnManipulationStarting UIElement。)
OnMouseDown UIElement。)
OnMouseEnter UIElement。)
OnMouseLeave UIElement。)
OnMouseLeftButtonDown UIElement。)
OnMouseLeftButtonUp UIElement。)
OnMouseMove UIElement。)
OnMouseRightButtonDown UIElement。)
OnMouseRightButtonUp UIElement。)
OnMouseUp UIElement。)
OnMouseWheel UIElement。)
OnPreviewDragEnter UIElement。)
OnPreviewDragLeave UIElement。)
OnPreviewDragOver UIElement。)
OnPreviewDrop UIElement。)
OnPreviewGiveFeedback UIElement。)
OnPreviewGotKeyboardFocus UIElement。)
OnPreviewKeyDown UIElement。)
OnPreviewKeyUp UIElement。)
OnPreviewLostKeyboardFocus UIElement。)
OnPreviewMouseDown UIElement。)
OnPreviewMouseLeftButtonDown UIElement。)
OnPreviewMouseLeftButtonUp UIElement。)
OnPreviewMouseMove UIElement。)
OnPreviewMouseRightButtonDown UIElement。)
OnPreviewMouseRightButtonUp UIElement。)
OnPreviewMouseUp UIElement。)
OnPreviewMouseWheel UIElement。)
OnPreviewQueryContinueDrag UIElement。)
OnPreviewStylusButtonDown UIElement。)
OnPreviewStylusButtonUp UIElement。)
OnPreviewStylusDown UIElement。)
OnPreviewStylusInAirMove UIElement。)
OnPreviewStylusInRange UIElement。)
OnPreviewStylusMove UIElement。)
OnPreviewStylusOutOfRange UIElement。)
OnPreviewStylusSystemGesture UIElement。)
OnPreviewStylusUp UIElement。)
OnPreviewTextInput UIElement。)
OnPreviewTouchDown UIElement。)
OnPreviewTouchMove UIElement。)
OnPreviewTouchUp UIElement。)
OnPropertyChanged FrameworkElement。)
OnQueryContinueDrag UIElement。)
OnQueryCursor UIElement。)
OnRender Panel。)
OnRenderSizeChanged FrameworkElement。)
OnStyleChanged FrameworkElement。)
OnStylusButtonDown UIElement。)
OnStylusButtonUp UIElement。)
OnStylusDown UIElement。)
OnStylusEnter UIElement。)
OnStylusInAirMove UIElement。)
OnStylusInRange UIElement。)
OnStylusLeave UIElement。)
OnStylusMove UIElement。)
OnStylusOutOfRange UIElement。)
OnStylusSystemGesture UIElement。)
OnStylusUp UIElement。)
OnTextInput UIElement。)
OnToolTipClosing FrameworkElement。)
OnToolTipOpening FrameworkElement。)
OnTouchDown UIElement。)
OnTouchEnter UIElement。)
OnTouchLeave UIElement。)
OnTouchMove UIElement。)
OnTouchUp UIElement。)
OnVisualChildrenChanged Panel。)
OnVisualParentChanged FrameworkElement。)
ParentLayoutInvalidated FrameworkElement。)
PointFromScreen Visual。)
PointToScreen Visual。)
PredictFocus FrameworkElement。)
RaiseEvent UIElement。)
ReadLocalValue DependencyObject。)
RegisterName FrameworkElement。)
ReleaseAllTouchCaptures UIElement。)
ReleaseMouseCapture UIElement。)
ReleaseStylusCapture UIElement。)
ReleaseTouchCapture UIElement。)
RemoveHandler UIElement。)
RemoveLogicalChild FrameworkElement。)
RemoveVisualChild Visual。)
SetBinding(DependencyProperty, String) FrameworkElement。)
SetBinding(DependencyProperty, BindingBase) FrameworkElement。)
SetCurrentValue DependencyObject。)
SetDock Dock 附加属性 的值设置为一个指定的元素。
SetResourceReference FrameworkElement。)
SetValue(DependencyProperty, Object) DependencyObject。)
SetValue(DependencyPropertyKey, Object) DependencyObject。)
ShouldSerializeChildren Panel。)
ShouldSerializeCommandBindings UIElement。)
ShouldSerializeInputBindings UIElement。)
ShouldSerializeProperty DependencyObject。)
ShouldSerializeResources FrameworkElement。)
ShouldSerializeStyle FrameworkElement。)
ShouldSerializeTriggers FrameworkElement。)
ToString Object。)
TransformToAncestor(Visual) Visual。)
TransformToAncestor(Visual3D) Visual。)
TransformToDescendant Visual。)
TransformToVisual Visual。)
TranslatePoint UIElement。)
TryFindResource FrameworkElement。)
UnregisterName FrameworkElement。)
UpdateDefaultStyle FrameworkElement。)
UpdateLayout UIElement。)
VerifyAccess DispatcherObject。)
页首
事件
 
显示: 
  名称 说明
ContextMenuClosing FrameworkElement。)
ContextMenuOpening FrameworkElement。)
DataContextChanged FrameworkElement。)
DragEnter UIElement。)
DragLeave UIElement。)
DragOver UIElement。)
Drop UIElement。)
FocusableChanged UIElement。)
GiveFeedback UIElement。)
GotFocus UIElement。)
GotKeyboardFocus UIElement。)
GotMouseCapture UIElement。)
GotStylusCapture UIElement。)
GotTouchCapture UIElement。)
Initialized FrameworkElement。)
IsEnabledChanged UIElement。)
IsHitTestVisibleChanged UIElement。)
IsKeyboardFocusedChanged UIElement。)
IsKeyboardFocusWithinChanged UIElement。)
IsMouseCapturedChanged UIElement。)
IsMouseCaptureWithinChanged UIElement。)
IsMouseDirectlyOverChanged UIElement。)
IsStylusCapturedChanged UIElement。)
IsStylusCaptureWithinChanged UIElement。)
IsStylusDirectlyOverChanged UIElement。)
IsVisibleChanged UIElement。)
KeyDown UIElement。)
KeyUp UIElement。)
LayoutUpdated UIElement。)
Loaded FrameworkElement。)
LostFocus UIElement。)
LostKeyboardFocus UIElement。)
LostMouseCapture UIElement。)
LostStylusCapture UIElement。)
LostTouchCapture UIElement。)
ManipulationBoundaryFeedback UIElement。)
ManipulationCompleted UIElement。)
ManipulationDelta UIElement。)
ManipulationInertiaStarting UIElement。)
ManipulationStarted UIElement。)
ManipulationStarting UIElement。)
MouseDown UIElement。)
MouseEnter UIElement。)
MouseLeave UIElement。)
MouseLeftButtonDown UIElement。)
MouseLeftButtonUp UIElement。)
MouseMove UIElement。)
MouseRightButtonDown UIElement。)
MouseRightButtonUp UIElement。)
MouseUp UIElement。)
MouseWheel UIElement。)
PreviewDragEnter UIElement。)
PreviewDragLeave UIElement。)
PreviewDragOver UIElement。)
PreviewDrop UIElement。)
PreviewGiveFeedback UIElement。)
PreviewGotKeyboardFocus UIElement。)
PreviewKeyDown UIElement。)
PreviewKeyUp UIElement。)
PreviewLostKeyboardFocus UIElement。)
PreviewMouseDown UIElement。)
PreviewMouseLeftButtonDown UIElement。)
PreviewMouseLeftButtonUp UIElement。)
PreviewMouseMove UIElement。)
PreviewMouseRightButtonDown UIElement。)
PreviewMouseRightButtonUp UIElement。)
PreviewMouseUp UIElement。)
PreviewMouseWheel UIElement。)
PreviewQueryContinueDrag UIElement。)
PreviewStylusButtonDown UIElement。)
PreviewStylusButtonUp UIElement。)
PreviewStylusDown UIElement。)
PreviewStylusInAirMove UIElement。)
PreviewStylusInRange UIElement。)
PreviewStylusMove UIElement。)
PreviewStylusOutOfRange UIElement。)
PreviewStylusSystemGesture UIElement。)
PreviewStylusUp UIElement。)
PreviewTextInput UIElement。)
PreviewTouchDown UIElement。)
PreviewTouchMove UIElement。)
PreviewTouchUp UIElement。)
QueryContinueDrag UIElement。)
QueryCursor UIElement。)
RequestBringIntoView FrameworkElement。)
SizeChanged FrameworkElement。)
SourceUpdated FrameworkElement。)
StylusButtonDown UIElement。)
StylusButtonUp UIElement。)
StylusDown UIElement。)
StylusEnter UIElement。)
StylusInAirMove UIElement。)
StylusInRange UIElement。)
StylusLeave UIElement。)
StylusMove UIElement。)
StylusOutOfRange UIElement。)
StylusSystemGesture UIElement。)
StylusUp UIElement。)
TargetUpdated FrameworkElement。)
TextInput UIElement。)
ToolTipClosing FrameworkElement。)
ToolTipOpening FrameworkElement。)
TouchDown UIElement。)
TouchEnter UIElement。)
TouchLeave UIElement。)
TouchMove UIElement。)
TouchUp UIElement。)
Unloaded FrameworkElement。)
页首
字段
 
显示: 
  名称 说明
DockProperty Dock 附加属性。
LastChildFillProperty LastChildFill 依赖项属性。
页首
显示: 
  名称 说明
IAddChild.AddChild Panel。)
IAddChild.AddText Panel。)
IQueryAmbient.IsAmbientPropertyAvailable FrameworkElement。)
页首
备注
 

Children 属性。

HorizontalAlignment,更改元素的位置相对于其父元素。

false ,并且必须为最后一个子元素指定显式停靠方向。

true。

DockPanel 通过其子元素重复按顺序,将每个元素的位置根据剩余的空间。

.NET Framework

受以下版本支持:4.5、4、3.5、3.0

.NET Framework Client Profile

受以下版本支持:4、3.5 SP1
平台
 

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008(不支持服务器核心角色), Windows Server 2008 R2(支持带 SP1 或更高版本的服务器核心角色;不支持 Itanium)

 

 

并不是.NET Framework 对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求.

相关文章: