DockableToolBarHostPanel Class
Represents a Panel control with layout logic for the toolbars within a DockableToolBarHost control.
public class DockableToolBarHostPanel : AnimatedVirtualizingItemsControlPanelBase
- Inheritance:
- object Visual UIElement FrameworkElement Panel VirtualizingPanel VirtualizingItemsControlPanelBase AnimatedVirtualizingItemsControlPanelBase object
Constructors
DockableToolBarHostPanel()
Initializes an instance of the class.
public DockableToolBarHostPanel()
Properties
ChildMargin
Gets the margin around the host's child control.
public Thickness ChildMargin { get; }
Property Value
- Thickness:
The margin around the host's child control.
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.
protected override Size ArrangeOverride(Size finalSize)
Parameter | Type | Description |
---|---|---|
finalSize | Size | The final area within the parent that this element should use to arrange itself and its children. |
Returns
- Size:
The actual size used.
MeasureOverride(Size)
When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.
protected override Size MeasureOverride(Size constraint)
Parameter | Type | Description |
---|---|---|
constraint | Size |
Returns
- Size:
The size that this element determines it needs during layout, based on its calculations of child element sizes.
OnIsItemsHostChanged(bool, bool)
Indicates that the IsItemsHost property value has changed.
protected override void OnIsItemsHostChanged(bool oldIsItemsHost, bool newIsItemsHost)
Parameter | Type | Description |
---|---|---|
oldIsItemsHost | bool | The old property value. |
newIsItemsHost | bool | The new property value. |
OnRender(DrawingContext)
Draws the content of a DrawingContext object during the render pass of a Panel element.
protected override void OnRender(DrawingContext dc)
Parameter | Type | Description |
---|---|---|
dc | DrawingContext | The DrawingContext object to draw. |
RemoveAllChildrenFromOtherPanels()
Removes all generated containers that may currently be located in other panels.
protected override void RemoveAllChildrenFromOtherPanels()
RemoveChildFromOtherPanel(UIElement)
Removes the specified generated container from another panel, if it currently located in one.
protected override void RemoveChildFromOtherPanel(UIElement childElement)
Parameter | Type | Description |
---|---|---|
childElement | UIElement | The element to remove. |
Fields
ChildMarginProperty
Identifies the ChildMargin dependency property. This field is read-only.
public static readonly DependencyProperty ChildMarginProperty
Inherited Members
- AnimatedVirtualizingItemsControlPanelBase.ArrangeChildWithAnimation(UIElement, Rect)
- AnimatedVirtualizingItemsControlPanelBase.ArrangeChildWithAnimation(UIElement, Rect, bool)
- AnimatedVirtualizingItemsControlPanelBase.ResetAnimationState()
- AnimatedVirtualizingItemsControlPanelBase.CanResetAnimationStateOnLoad
- VirtualizingItemsControlPanelBase.GetRealizedContainers()
- VirtualizingItemsControlPanelBase.OnItemsChanged(object, ItemsChangedEventArgs)
- VirtualizingItemsControlPanelBase.RealizeAllContainers()
- VirtualizingItemsControlPanelBase.ItemsControl