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

Represents a control that provides transition animations for its content using different transition effects and easing functions. The RadTransitionControl inherits from ContentControl and allows customization of the transition's duration, easing function, and transition effect. It includes properties to determine if the transition is idle, as well as events to handle transition status changes and triggering. This control leverages templates for its presentation and can be styled as needed.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
[TelerikToolboxCategory("Containers")]
public class RadTransitionControl : ContentControl

Inheritance: objectRadTransitionControl

Constructors

Initializes a new instance of the RadTransitionControl class.

C#
public RadTransitionControl()

Fields

DurationProperty

DependencyProperty

Identifies the Duration property.

C#
public static readonly DependencyProperty DurationProperty

EasingProperty

DependencyProperty

Identifies the AnimationEasing property.

C#
public static readonly DependencyProperty EasingProperty

IsTransitionIdleProperty

DependencyProperty

Identifies the IsTransitionIdle property.

C#
public static readonly DependencyProperty IsTransitionIdleProperty

TransitionProperty

DependencyProperty

Identifies the Transition property.

C#
public static readonly DependencyProperty TransitionProperty

Properties

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

C#
public TimeSpan Duration { get; set; }

Easing

IEasingFunction

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

C#
public IEasingFunction Easing { get; set; }

Gets an indication if currently there is no Transition animating the TransitionPresenter.

C#
public bool IsTransitionIdle { get; }

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

C#
public TransitionProvider Transition { get; set; }

Methods

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate().

C#
public override void OnApplyTemplate()

Raises the TransitionStatusChanged event.

C#
protected virtual void OnContentPresenterTransitionStatusChanged(TransitionStatusChangedEventArgs e)
Parameters:eTransitionStatusChangedEventArgs

The TransitionStatusChangedEventArgs instance containing the event data.

Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Raises the TriggeringTransition event.

C#
protected virtual void OnTriggeringTransition(TriggeringTransitionEventArgs e)
Parameters:eTriggeringTransitionEventArgs

The TriggeringTransitionEventArgs instance containing the event data.

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.

C#
public void PrepareAnimation()

Will start the transition animation if one is prepared.

C#
public void StartAnimation()

Events

Invoked when a Transition state changes.

C#
public event EventHandler<TransitionStatusChangedEventArgs> TransitionStatusChanged

Occurs before the transition is started.

C#
public event EventHandler<TriggeringTransitionEventArgs> TriggeringTransition