C# Class System.Windows.Controls.AnimatedPanel

A base class for all panels providing animated layout.
Inheritance: System.Windows.Controls.Panel
Datei anzeigen Open project: nikhilk/silverlightfx

Public Properties

Property Type Description
DurationProperty System.Windows.DependencyProperty
InterpolationProperty System.Windows.DependencyProperty
UseAnimatedLayoutProperty System.Windows.DependencyProperty

Protected Methods

Method Description
AnimatedPanel ( ) : System

Initializes an instance of an AnimatedPanel.

ArrangeElement ( UIElement element, Rect finalRect ) : void

Arranges the element by animating it to the specified bounds.

ArrangeElement ( UIElement element, Rect finalRect, bool isAnimated ) : void

Arranges the element by optionally animating it to the specified bounds.

BeginArrange ( ) : void

Creates a new layout animation when an arrange pass starts.

EndArrange ( ) : void

Plays the current layout animation when an arrange pass is completed.

GetInitialRect ( Size panelSize, Rect elementRect, UIElement element ) : Rect

Gets the initial bounds of an element.

Method Details

AnimatedPanel() protected method

Initializes an instance of an AnimatedPanel.
protected AnimatedPanel ( ) : System
return System

ArrangeElement() protected method

Arranges the element by animating it to the specified bounds.
protected ArrangeElement ( UIElement element, Rect finalRect ) : void
element UIElement The element to animate and arrange.
finalRect System.Windows.Rect The bounds that the element should use once it is arranged.
return void

ArrangeElement() protected method

Arranges the element by optionally animating it to the specified bounds.
protected ArrangeElement ( UIElement element, Rect finalRect, bool isAnimated ) : void
element UIElement The element to animate and arrange.
finalRect System.Windows.Rect The bounds that the element should use once it is arranged.
isAnimated bool Whether to animate the element or just arrange it immediately.
return void

BeginArrange() protected method

Creates a new layout animation when an arrange pass starts.
protected BeginArrange ( ) : void
return void

EndArrange() protected method

Plays the current layout animation when an arrange pass is completed.
protected EndArrange ( ) : void
return void

GetInitialRect() protected method

Gets the initial bounds of an element.
protected GetInitialRect ( Size panelSize, Rect elementRect, UIElement element ) : Rect
panelSize System.Windows.Size The size of this panel.
elementRect System.Windows.Rect The computed bounds of the panel.
element UIElement The element whose initial bounds are required.
return System.Windows.Rect

Property Details

DurationProperty public_oe static_oe property

Represents the Duration property of an AnimatedPanel.
public static DependencyProperty,System.Windows DurationProperty
return System.Windows.DependencyProperty

InterpolationProperty public_oe static_oe property

Represents the Interpolation property of an AnimatedPanel.
public static DependencyProperty,System.Windows InterpolationProperty
return System.Windows.DependencyProperty

UseAnimatedLayoutProperty public_oe static_oe property

Represents the UseAnimatedLayout property of an AnimatedPanel.
public static DependencyProperty,System.Windows UseAnimatedLayoutProperty
return System.Windows.DependencyProperty