In This Article

AnimatedDockPanel Class

Represents a panel that positions child elements either horizontally or vertically, relative to each other.

public class AnimatedDockPanel : PanelBase, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, ILogicalParent, IVisualParent
Inheritance:
Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Panel PanelBase Object
Implements:
ILogicalParent IVisualParent

Constructors

AnimatedDockPanel()

public AnimatedDockPanel()

Properties

LastChildFill

Gets or sets a value that indicates whether the last child element within a AnimatedDockPanel stretches to fill the remaining available space. This is a dependency property.

public bool LastChildFill { get; set; }

Property Value

Boolean:

true if the last child element stretches to fill the remaining space; otherwise false. The default value is true.

Methods

ArrangeElements(IList<UIElement>, Size)

Positions the specified elements and determines a size for a FrameworkElement-derived class.

public override Size ArrangeElements(IList<UIElement> elements, Size finalSize)
Parameter Type Description
elements IList<UIElement>

The elements to be arranged.

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.

GetDock(UIElement)

Gets the value of the DockProperty attached property for the specified object.

[AttachedPropertyBrowsableForChildren]
public static Dock GetDock(UIElement element)
Parameter Type Description
element UIElement

The element from which the property value is read.

Returns

Dock:

The object's value.

MeasureElements(IList<UIElement>, Size)

Measures the size in layout required for the specified elements and determines a size for the FrameworkElement-derived class.

public override Size MeasureElements(IList<UIElement> elements, Size availableSize)
Parameter Type Description
elements IList<UIElement>

The elements to be measured.

availableSize Size

The available size that this element can give to the specified elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.

Returns

Size:

The size that this element determines it needs during layout, based on its calculations of the specified elements.

SetDock(UIElement, Dock)

Sets the value of the DockProperty attached property to the specified object.

public static void SetDock(UIElement element, Dock value)
Parameter Type Description
element UIElement

The element to which the attached property is written.

value Dock

The value to set.

Fields

DockProperty

Identifies the Dock dependency property. This field is read-only.

public static readonly DependencyProperty DockProperty

LastChildFillProperty

Identifies the LastChildFill dependency property. This field is read-only.

public static readonly DependencyProperty LastChildFillProperty

Inherited Members

Extension Methods