New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public sealed class LayoutAnimationPanel : Panel

Inheritance: objectLayoutAnimationPanel

Constructors

C#
public LayoutAnimationPanel()

Fields

HeightScaleProperty

DependencyProperty

Identifies the HeightScale DependencyProperty.

C#
public static readonly DependencyProperty HeightScaleProperty

HeightWeightProperty

DependencyProperty

Identifies the HeightWeightProperty.

C#
public static readonly DependencyProperty HeightWeightProperty

MaxHeightWeightProperty

DependencyProperty

Identifies the MaxHeightWeight DependencyProperty.

C#
public static readonly DependencyProperty MaxHeightWeightProperty

MaxWidthWeightProperty

DependencyProperty

Identifies the MaxWidthWeight.

C#
public static readonly DependencyProperty MaxWidthWeightProperty

WidthScaleProperty

DependencyProperty

Identifies the WidthScale DependencyProperty.

C#
public static readonly DependencyProperty WidthScaleProperty

WidthWeightProperty

DependencyProperty

Identifies the WidthWeight.

C#
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.

C#
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.

C#
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.

C#
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.

C#
public double WidthScale { get; set; }

Methods

When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.

C#
protected override Size ArrangeOverride(Size finalSize)
Parameters:finalSizeSize

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.

C#
public static double GetHeightWeight(DependencyObject obj)
Parameters:objDependencyObject

The DependencyObject.

Returns:

double

Gets the LayoutAnimationPanel.WidthWeight property. LayoutAnimationPanel's desired width is determined by all child object by a portion proportional to their WidthWeight property.

C#
public static double GetWidthWeight(DependencyObject obj)
Parameters:objDependencyObject

The DependencyObject.

Returns:

double

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSize

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.

C#
public static void SetHeightWeight(DependencyObject obj, double value)
Parameters:objDependencyObject

The DependencyObject.

valuedouble

The 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.

C#
public static void SetWidthWeight(DependencyObject obj, double value)
Parameters:objDependencyObject

The DependencyObject.

valuedouble

The Value in range [0 - 1].