skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class LayoutAnimationPanel

A Panel that expose various properties that can be used to easily animate the layout from Storyboards.

Inheritance
System.Object
LayoutAnimationPanel
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].

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.