Class
RadTransitionControl

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:

cs-api-definition
[TelerikToolboxCategory("Containers")]
public class RadTransitionControl : ContentControl

Inheritance: objectRadTransitionControl

Constructors

RadTransitionControl()

Initializes a new instance of the RadTransitionControl class.

Declaration

cs-api-definition
public RadTransitionControl()

Fields

DurationProperty

Identifies the Duration property.

Declaration

cs-api-definition
public static readonly DependencyProperty DurationProperty

Field Value

DependencyProperty

EasingProperty

Identifies the AnimationEasing property.

Declaration

cs-api-definition
public static readonly DependencyProperty EasingProperty

Field Value

DependencyProperty

IsTransitionIdleProperty

Identifies the IsTransitionIdle property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsTransitionIdleProperty

Field Value

DependencyProperty

TransitionProperty

Identifies the Transition property.

Declaration

cs-api-definition
public static readonly DependencyProperty TransitionProperty

Field Value

DependencyProperty

Properties

Duration

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

Declaration

cs-api-definition
public TimeSpan Duration { get; set; }

Property Value

TimeSpan

Easing

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

Declaration

cs-api-definition
public IEasingFunction Easing { get; set; }

Property Value

IEasingFunction

IsTransitionIdle

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

Declaration

cs-api-definition
public bool IsTransitionIdle { get; }

Property Value

bool

Transition

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

Declaration

cs-api-definition
public TransitionProvider Transition { get; set; }

Property Value

TransitionProvider

Methods

OnApplyTemplate()

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().

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnContentPresenterTransitionStatusChanged(TransitionStatusChangedEventArgs)

Raises the TransitionStatusChanged event.

Declaration

cs-api-definition
protected virtual void OnContentPresenterTransitionStatusChanged(TransitionStatusChangedEventArgs e)

Parameters

e

TransitionStatusChangedEventArgs

The TransitionStatusChangedEventArgs instance containing the event data.

OnCreateAutomationPeer()

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

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnTriggeringTransition(TriggeringTransitionEventArgs)

Raises the TriggeringTransition event.

Declaration

cs-api-definition
protected virtual void OnTriggeringTransition(TriggeringTransitionEventArgs e)

Parameters

e

TriggeringTransitionEventArgs

The TriggeringTransitionEventArgs instance containing the event data.

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

cs-api-definition
public void PrepareAnimation()

StartAnimation()

Will start the transition animation if one is prepared.

Declaration

cs-api-definition
public void StartAnimation()

Events

TransitionStatusChanged

Invoked when a Transition state changes.

Declaration

cs-api-definition
public event EventHandler<TransitionStatusChangedEventArgs> TransitionStatusChanged

Event Value

EventHandler<TransitionStatusChangedEventArgs>

TriggeringTransition

Occurs before the transition is started.

Declaration

cs-api-definition
public event EventHandler<TriggeringTransitionEventArgs> TriggeringTransition

Event Value

EventHandler<TriggeringTransitionEventArgs>