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:
[TelerikToolboxCategory("Containers")]
public class RadTransitionControl : ContentControl
Inheritance: objectRadTransitionControl
Constructors
Initializes a new instance of the RadTransitionControl class.
public RadTransitionControl()
Fields
DurationProperty
DependencyProperty
Identifies the Duration property.
public static readonly DependencyProperty DurationProperty
EasingProperty
DependencyProperty
Identifies the AnimationEasing property.
public static readonly DependencyProperty EasingProperty
IsTransitionIdleProperty
DependencyProperty
Identifies the IsTransitionIdle property.
public static readonly DependencyProperty IsTransitionIdleProperty
TransitionProperty
DependencyProperty
Identifies the Transition property.
public static readonly DependencyProperty TransitionProperty
Properties
Gets or sets the duration of the animation. This is a DependencyProperty.
public TimeSpan Duration { get; set; }
Easing
IEasingFunction
Gets or sets a value describing the easing function to be used for the transition animation.
public IEasingFunction Easing { get; set; }
Gets an indication if currently there is no Transition animating the TransitionPresenter.
public bool IsTransitionIdle { get; }
Gets or sets a value, describing the the transition effect to be used for the transition. This is a DependencyProperty.
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().
public override void OnApplyTemplate()
Raises the TransitionStatusChanged event.
protected virtual void OnContentPresenterTransitionStatusChanged(TransitionStatusChangedEventArgs e)
The TransitionStatusChangedEventArgs instance containing the event data.
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Raises the TriggeringTransition event.
protected virtual void OnTriggeringTransition(TriggeringTransitionEventArgs e)
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.
public void PrepareAnimation()
Will start the transition animation if one is prepared.
public void StartAnimation()
Events
Invoked when a Transition state changes.
public event EventHandler<TransitionStatusChangedEventArgs> TransitionStatusChanged
Occurs before the transition is started.
public event EventHandler<TriggeringTransitionEventArgs> TriggeringTransition