ClassLayoutAnimationPanel
A Panel that expose various properties that can be used to easily animate the layout from Storyboards.
Definition
Namespace:Telerik.Windows.Controls.TransitionControl
Assembly:Telerik.Windows.Controls.dll
Syntax:
public sealed class LayoutAnimationPanel : Panel
Inheritance: objectLayoutAnimationPanel
Constructors
LayoutAnimationPanel()
Declaration
public LayoutAnimationPanel()
Fields
HeightScaleProperty
Identifies the HeightScale DependencyProperty.
Declaration
public static readonly DependencyProperty HeightScaleProperty
Field Value
DependencyProperty
HeightWeightProperty
Identifies the HeightWeightProperty.
Declaration
public static readonly DependencyProperty HeightWeightProperty
Field Value
DependencyProperty
MaxHeightWeightProperty
Identifies the MaxHeightWeight DependencyProperty.
Declaration
public static readonly DependencyProperty MaxHeightWeightProperty
Field Value
DependencyProperty
MaxWidthWeightProperty
Identifies the MaxWidthWeight.
Declaration
public static readonly DependencyProperty MaxWidthWeightProperty
Field Value
DependencyProperty
WidthScaleProperty
Identifies the WidthScale DependencyProperty.
Declaration
public static readonly DependencyProperty WidthScaleProperty
Field Value
DependencyProperty
WidthWeightProperty
Identifies the WidthWeight.
Declaration
public static readonly DependencyProperty WidthWeightProperty
Field Value
DependencyProperty
Properties
HeightScale
Gets or Sets the HeightScale property that is used to scale vertically the layout box desired by the panel but without scaling the rendering image.
MaxHeightWeight
Gets or Sets the MaxHeightWeight. After a desired height is determined by all children's weighted height, they will be multiplied by (1 - MaxHeightWeight) and the largest child's height will be added multiplied by MaxHeightWeight to determine the final panel desired height. Setting this property to 1 will set the desired height of the panel to the desired height of the largest child.
MaxWidthWeight
Gets or Sets the MaxWidthWeight. After a desired width is determined by all children's weighted widths, they will be multiplied by (1 - MaxWidthWeight) and the largest child's width will be added multiplied by MaxWidthWeight to determine the final panel desired width. Setting this property to 1 will set the desired width of the panel to the desired width of the largest child.
WidthScale
Gets or Sets the WidthScale property that is used to scale horizontally the layout box desired by the panel but without scaling the rendering image.
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
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.
GetHeightWeight(DependencyObject)
Gets the LayoutAnimationPanel.HeightWeight property. LayoutAnimationPanel's desired height is determined by all child object by a portion proportional to their WidthWeight property.
Declaration
public static double GetHeightWeight(DependencyObject obj)
Parameters
obj
DependencyObject
The DependencyObject.
Returns
GetWidthWeight(DependencyObject)
Gets the LayoutAnimationPanel.WidthWeight property. LayoutAnimationPanel's desired width is determined by all child object by a portion proportional to their WidthWeight property.
Declaration
public static double GetWidthWeight(DependencyObject obj)
Parameters
obj
DependencyObject
The DependencyObject.
Returns
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.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSize
Size
The available size that this element can give to child 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 child element sizes.
SetHeightWeight(DependencyObject, double)
Sets the LayoutAnimationPanel.HeightWeight property. LayoutAnimationPanel's desired height is determined by all child object by a portion proportional to their WidthWeight property.
Declaration
public static void SetHeightWeight(DependencyObject obj, double value)
Parameters
obj
DependencyObject
The DependencyObject.
value
The Value in range [0 - 1].
SetWidthWeight(DependencyObject, double)
Sets the LayoutAnimationPanel.WidthWeight property. LayoutAnimationPanel's desired width is determined by all child object by a portion proportional to their WidthWeight property.
Declaration
public static void SetWidthWeight(DependencyObject obj, double value)
Parameters
obj
DependencyObject
The DependencyObject.
value
The Value in range [0 - 1].