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 TransitionPresenter

This class represents a ContentPresenter that changes its content with a transition.

Inheritance
System.Object
TransitionPresenter
Namespace: Telerik.Windows.Controls.TransitionControl
Assembly: Telerik.Windows.Controls.dll

Syntax

public class TransitionPresenter : ContentPresenter

Constructors

TransitionPresenter()

Initializes a new instance of the TransitionPresenter class.

Declaration
public TransitionPresenter()

Fields

AnimationStretchProperty

Identifies the AnimationStretch attached property.

Declaration
public static readonly DependencyProperty AnimationStretchProperty
Field Value
System.Windows.DependencyProperty

CurrentContentProperty

Identifies the CurrentContent property.

Declaration
public static readonly DependencyProperty CurrentContentProperty
Field Value
System.Windows.DependencyProperty

CurrentContentTemplateProperty

Identifies the CurrentContentTemplate property.

Declaration
public static readonly DependencyProperty CurrentContentTemplateProperty
Field Value
System.Windows.DependencyProperty

DurationProperty

Identifies the Duration property.

Declaration
public static readonly DependencyProperty DurationProperty
Field Value
System.Windows.DependencyProperty

EasingProperty

Identifies the Easing property.

Declaration
public static readonly DependencyProperty EasingProperty
Field Value
System.Windows.DependencyProperty

HostProperty

Identifies the Host property.

Declaration
public static readonly DependencyProperty HostProperty
Field Value
System.Windows.DependencyProperty

IsTransitionPlayingProperty

Identifies the IsTransitionPlaying property.

Declaration
public static readonly DependencyProperty IsTransitionPlayingProperty
Field Value
System.Windows.DependencyProperty

OldContentPresenterProperty

Identifies the OldContentPresenter property.

Declaration
public static readonly DependencyProperty OldContentPresenterProperty
Field Value
System.Windows.DependencyProperty

OldVisualBrushProperty

Identifies the OldVisualBrush property..

Declaration
public static readonly DependencyProperty OldVisualBrushProperty
Field Value
System.Windows.DependencyProperty

OldVisualHeightProperty

Identifies the OldVisualHeight property.

Declaration
public static readonly DependencyProperty OldVisualHeightProperty
Field Value
System.Windows.DependencyProperty

OldVisualWidthProperty

Identifies the OldVisualWidth property.

Declaration
public static readonly DependencyProperty OldVisualWidthProperty
Field Value
System.Windows.DependencyProperty

TransitionProperty

Identifies the Transition property.

Declaration
public static readonly DependencyProperty TransitionProperty
Field Value
System.Windows.DependencyProperty

Properties

CurrentContent

Gets or sets a the content of the ContentPresenter. This property is needed as a proxy between the actual Content to let the transition logic to take a snapshot of the old content. This is a DependencyProperty.

Declaration
public object CurrentContent { get; set; }
Property Value
System.Object

CurrentContentTemplate

Gets or sets a the content template of the ContentPresenter. This property is needed as a proxy between the actual ContentTemplate to let the transition logic to take a snapshot of the content with the old template. This is a DependencyProperty.

Declaration
public DataTemplate CurrentContentTemplate { get; set; }
Property Value
System.Windows.DataTemplate

Duration

Gets or sets the duration of the animation. This is a DependencyProperty.

Declaration
public TimeSpan Duration { get; set; }
Property Value
System.TimeSpan

Easing

Gets or sets a value describing the easing function to be used for the transition animation.

Declaration
public IEasingFunction Easing { get; set; }
Property Value
System.Windows.Media.Animation.IEasingFunction

Host

Gets or sets the element used to host both the TransitionPresenter and the OldContent visual. This is most likely to be a Panel for use in the Transitions for layout animation.

Declaration
public Panel Host { get; set; }
Property Value
System.Windows.Controls.Panel

OldContentPresenter

Gets or sets a value identifying the element to be used as an old content for the transition animation when not using a shader effect.

Declaration
public FrameworkElement OldContentPresenter { get; set; }
Property Value
System.Windows.FrameworkElement

OldVisualBrush

Gets or sets a value, describing the texture to be used as initial when transitioning. This is a DependencyProperty.

Declaration
public Brush OldVisualBrush { get; protected set; }
Property Value
System.Windows.Media.Brush

OldVisualHeight

Gets or sets a value, describing the Height of the old content when transitioning. This is a DependencyProperty.

Declaration
public double OldVisualHeight { get; protected set; }
Property Value
System.Double

OldVisualWidth

Gets or sets a value, describing the Width of the old content when transitioning. This is a DependencyProperty.

Declaration
public double OldVisualWidth { get; protected set; }
Property Value
System.Double

Transition

Gets or sets a value, describing the the transition effect to be used for the transition. This is a DependencyProperty.

Declaration
public TransitionProvider Transition { get; set; }
Property Value
TransitionProvider

Methods

GetAnimationStretch(DependencyObject)

Gets a value describing the stretch to be used for the transition animation.

Declaration
public static Stretch GetAnimationStretch(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

Returns
System.Windows.Media.Stretch

MeasureOverride(Size)

Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.

Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
System.Windows.Size availableSize

The available size that this object can give to child objects. Infinity can be specified as a value to indicate that the object will size to whatever content is available.

Returns
System.Windows.Size

The size that this object determines it needs during layout, based on its calculations of child object allotted sizes.

PrepareAnimation()

Prepares to play the transition animation. The animation will be started after the next Measure pass. This method is called right before the content is changed and creates a snapshot of the old content for use in the animation.

Declaration
public void PrepareAnimation()

SetAnimationStretch(DependencyObject, Stretch)

Sets a value describing the stretch to be used for the transition animation.

Declaration
public static void SetAnimationStretch(DependencyObject obj, Stretch value)
Parameters
System.Windows.DependencyObject obj

System.Windows.Media.Stretch value

StartAnimation()

Will start the transition animation if one is prepared.

Declaration
public void StartAnimation()

Events

TransitionStatusChanged

Invoked when a Transition state changes.

Declaration
public event EventHandler<TransitionStatusChangedEventArgs> TransitionStatusChanged
Event Type
System.EventHandler<TransitionStatusChangedEventArgs>

TriggeringTransition

Occurs before the transition is started.

Declaration
public event EventHandler<TriggeringTransitionEventArgs> TriggeringTransition
Event Type
System.EventHandler<TriggeringTransitionEventArgs>

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.