Class LayoutAnimationPanel
A Panel that expose various properties that can be used to easily animate the layout from Storyboards.
Inheritance
Namespace: Telerik.Windows.Controls.TransitionControl
Assembly: Telerik.Windows.Controls.dll
Syntax
public sealed class LayoutAnimationPanel : Panel
Constructors
LayoutAnimationPanel()
Declaration
public LayoutAnimationPanel()
Fields
HeightScaleProperty
Identifies the HeightScale DependencyProperty.
Declaration
public static readonly DependencyProperty HeightScaleProperty
Field Value
System.Windows.DependencyProperty
|
HeightWeightProperty
Identifies the HeightWeightProperty.
Declaration
public static readonly DependencyProperty HeightWeightProperty
Field Value
System.Windows.DependencyProperty
|
MaxHeightWeightProperty
Identifies the MaxHeightWeight DependencyProperty.
Declaration
public static readonly DependencyProperty MaxHeightWeightProperty
Field Value
System.Windows.DependencyProperty
|
MaxWidthWeightProperty
Identifies the MaxWidthWeight.
Declaration
public static readonly DependencyProperty MaxWidthWeightProperty
Field Value
System.Windows.DependencyProperty
|
WidthScaleProperty
Identifies the WidthScale DependencyProperty.
Declaration
public static readonly DependencyProperty WidthScaleProperty
Field Value
System.Windows.DependencyProperty
|
WidthWeightProperty
Identifies the WidthWeight.
Declaration
public static readonly DependencyProperty WidthWeightProperty
Field Value
System.Windows.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.
Declaration
public double HeightScale { get; set; }
Property Value
System.Double
|
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.
Declaration
public double MaxHeightWeight { get; set; }
Property Value
System.Double
|
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.
Declaration
public double MaxWidthWeight { get; set; }
Property Value
System.Double
|
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.
Declaration
public double WidthScale { get; set; }
Property Value
System.Double
|
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
System.Windows.Size
finalSize
The final area within the parent that this element should use to arrange itself and its children. |
Returns
System.Windows.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
System.Windows.DependencyObject
obj
The DependencyObject. |
Returns
System.Double
|
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
System.Windows.DependencyObject
obj
The DependencyObject. |
Returns
System.Double
|
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
System.Windows.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
System.Windows.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
System.Windows.DependencyObject
obj
The DependencyObject. |
System.Double
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
System.Windows.DependencyObject
obj
The DependencyObject. |
System.Double
value
The Value in range [0 - 1]. |