LayoutAnimationPanel
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
public LayoutAnimationPanel()
Fields
HeightScaleProperty
DependencyProperty
Identifies the HeightScale DependencyProperty.
public static readonly DependencyProperty HeightScaleProperty
HeightWeightProperty
DependencyProperty
Identifies the HeightWeightProperty.
public static readonly DependencyProperty HeightWeightProperty
MaxHeightWeightProperty
DependencyProperty
Identifies the MaxHeightWeight DependencyProperty.
public static readonly DependencyProperty MaxHeightWeightProperty
MaxWidthWeightProperty
DependencyProperty
Identifies the MaxWidthWeight.
public static readonly DependencyProperty MaxWidthWeightProperty
WidthScaleProperty
DependencyProperty
Identifies the WidthScale DependencyProperty.
public static readonly DependencyProperty WidthScaleProperty
WidthWeightProperty
DependencyProperty
Identifies the WidthWeight.
public static readonly DependencyProperty WidthWeightProperty
Properties
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.
public double HeightScale { get; set; }
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.
public double MaxHeightWeight { get; set; }
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.
public double MaxWidthWeight { get; set; }
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.
public double WidthScale { get; set; }
Methods
When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.
protected override Size ArrangeOverride(Size finalSize)
The final area within the parent that this element should use to arrange itself and its children.
Returns:Size
The actual size used.
Gets the LayoutAnimationPanel.HeightWeight property. LayoutAnimationPanel's desired height is determined by all child object by a portion proportional to their WidthWeight property.
public static double GetHeightWeight(DependencyObject obj)
The DependencyObject.
Returns:Gets the LayoutAnimationPanel.WidthWeight property. LayoutAnimationPanel's desired width is determined by all child object by a portion proportional to their WidthWeight property.
public static double GetWidthWeight(DependencyObject obj)
The DependencyObject.
Returns: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 availableSize)
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.
Sets the LayoutAnimationPanel.HeightWeight property. LayoutAnimationPanel's desired height is determined by all child object by a portion proportional to their WidthWeight property.
public static void SetHeightWeight(DependencyObject obj, double value)
The DependencyObject.
valuedoubleThe Value in range [0 - 1].
Sets the LayoutAnimationPanel.WidthWeight property. LayoutAnimationPanel's desired width is determined by all child object by a portion proportional to their WidthWeight property.
public static void SetWidthWeight(DependencyObject obj, double value)
The DependencyObject.
valuedoubleThe Value in range [0 - 1].