In This Article

AnimatedStackPanel Class

Represents a panel that positions child elements in sequential order, either horizontally or vertically.

public class AnimatedStackPanel : PanelBase, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild, ILogicalParent, IVisualParent, IScrollInfo
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Panel PanelBase Object
Implements:
ILogicalParent IVisualParent

Constructors

AnimatedStackPanel()

public AnimatedStackPanel()

Properties

CanHorizontallyScroll

Gets or sets a value that indicates whether scrolling on the horizontal axis is possible.

public bool CanHorizontallyScroll { get; set; }

Property Value

System.Boolean

CanVerticallyScroll

Gets or sets a value that indicates whether scrolling on the vertical axis is possible.

public bool CanVerticallyScroll { get; set; }

Property Value

System.Boolean

ExtentHeight

Gets the vertical size of the extent.

public double ExtentHeight { get; }

Property Value

System.Double:

A System.Double that represents, in device independent pixels, the vertical size of the extent. This property has no default value.

ExtentWidth

Gets the horizontal size of the extent.

public double ExtentWidth { get; }

Property Value

System.Double:

A System.Double that represents, in device independent pixels, the horizontal size of the extent. This property has no default value.

HasLogicalOrientation

Gets a value that indicates whether this System.Windows.Controls.Panel arranges its descendants in a single dimension.

protected override bool HasLogicalOrientation { get; }

Property Value

System.Boolean:

true if the orientation of the System.Windows.Controls.Panel is in one dimension; otherwise, false.

HorizontalOffset

Gets the horizontal offset of the scrolled content.

public double HorizontalOffset { get; }

Property Value

System.Double:

A System.Double that represents, in device independent pixels, the horizontal offset. This property has no default value.

LogicalOrientation

The Orientation of the panel, if the panel supports layout in only a single dimension.

protected override Orientation LogicalOrientation { get; }

Property Value

System.Windows.Controls.Orientation:

The Orientation of the panel. This property has no default value.

Orientation

Gets or sets the orientation that the child elements are arranged. This is a dependency property.

public Orientation Orientation { get; set; }

Property Value

System.Windows.Controls.Orientation:

The orientation that the child elements are arranged. The default value is Orientation.Vertical.

ScrollOwner

Gets or sets a System.Windows.Controls.ScrollViewer element that controls scrolling behavior.

public ScrollViewer ScrollOwner { get; set; }

Property Value

System.Windows.Controls.ScrollViewer:

A System.Windows.Controls.ScrollViewer element that controls scrolling behavior. This property has no default value.

VerticalOffset

Gets the vertical offset of the scrolled content.

public double VerticalOffset { get; }

Property Value

System.Double:

A System.Double that represents, in device independent pixels, the vertical offset of the scrolled content. Valid values are between zero and the ExtentHeight minus the ViewportHeight. This property has no default value.

ViewportHeight

Gets the vertical size of the viewport for this content.

public double ViewportHeight { get; }

Property Value

System.Double:

A System.Double that represents, in device independent pixels, the vertical size of the viewport for this content. This property has no default value.

ViewportWidth

Gets the horizontal size of the viewport for this content.

public double ViewportWidth { get; }

Property Value

System.Double:

A System.Double that represents, in device independent pixels, the horizontal size of the viewport for this content. This property has no default value.

Methods

ArrangeElements(IList<UIElement>, Size)

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

public override Size ArrangeElements(IList<UIElement> elements, Size finalSize)
Parameter Type Description
elements System.Collections.Generic.IList<System.Windows.UIElement>

The elements to be arranged.

finalSize System.Windows.Size

The final area within the parent that this element should use to arrange itself and the specified elements.

Returns

System.Windows.Size:

The actual size used.

LineDown()

Scrolls down within content by one logical unit.

public void LineDown()

LineLeft()

Scrolls left within content by one logical unit.

public void LineLeft()

LineRight()

Scrolls right within content by one logical unit.

public void LineRight()

LineUp()

Scrolls up within content by one logical unit.

public void LineUp()

MakeVisible(Visual, Rect)

Forces content to scroll until the coordinate space of a System.Windows.Media.Visual object is visible.

public Rect MakeVisible(Visual visual, Rect rectangle)
Parameter Type Description
visual System.Windows.Media.Visual

A System.Windows.Media.Visual that becomes visible.

rectangle System.Windows.Rect

A bounding rectangle that identifies the coordinate space to make visible.

Returns

System.Windows.Rect:

A System.Windows.Rect that is visible.

MeasureElements(IList<UIElement>, Size)

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

public override Size MeasureElements(IList<UIElement> elements, Size availableSize)
Parameter Type Description
elements System.Collections.Generic.IList<System.Windows.UIElement>

The elements to be measured.

availableSize System.Windows.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

System.Windows.Size:

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

MouseWheelDown()

Scrolls down within content after a user clicks the wheel button on a mouse.

public void MouseWheelDown()

MouseWheelLeft()

Scrolls left within content after a user clicks the wheel button on a mouse.

public void MouseWheelLeft()

MouseWheelRight()

Scrolls right within content after a user clicks the wheel button on a mouse.

public void MouseWheelRight()

MouseWheelUp()

Scrolls up within content after a user clicks the wheel button on a mouse.

public void MouseWheelUp()

PageDown()

Scrolls down within content by one page.

public void PageDown()

PageLeft()

Scrolls left within content by one page.

public void PageLeft()

PageRight()

Scrolls right within content by one page.

public void PageRight()

PageUp()

Scrolls up within content by one page.

public void PageUp()

SetHorizontalOffset(Double)

Sets the amount of horizontal offset.

public void SetHorizontalOffset(double offset)
Parameter Type Description
offset System.Double

The degree to which content is horizontally offset from the containing viewport.

SetVerticalOffset(Double)

Sets the amount of vertical offset.

public void SetVerticalOffset(double offset)
Parameter Type Description
offset System.Double

The degree to which content is vertically offset from the containing viewport.

Fields

OrientationProperty

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

public static readonly DependencyProperty OrientationProperty

Inherited Members

Extension Methods