ClassRadTransitionControl
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
RadTransitionControl()
Initializes a new instance of the RadTransitionControl class.
Declaration
public RadTransitionControl()
Fields
DurationProperty
Identifies the Duration property.
Declaration
public static readonly DependencyProperty DurationProperty
Field Value
DependencyProperty
EasingProperty
Identifies the AnimationEasing property.
Declaration
public static readonly DependencyProperty EasingProperty
Field Value
DependencyProperty
IsTransitionIdleProperty
Identifies the IsTransitionIdle property.
Declaration
public static readonly DependencyProperty IsTransitionIdleProperty
Field Value
DependencyProperty
TransitionProperty
Identifies the Transition property.
Declaration
public static readonly DependencyProperty TransitionProperty
Field Value
DependencyProperty
Properties
Duration
Gets or sets the duration of the animation. This is a DependencyProperty.
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
IEasingFunction
IsTransitionIdle
Gets an indication if currently there is no Transition animating the TransitionPresenter.
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
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
public override void OnApplyTemplate()
OnContentPresenterTransitionStatusChanged(TransitionStatusChangedEventArgs)
Raises the TransitionStatusChanged event.
Declaration
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
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnTriggeringTransition(TriggeringTransitionEventArgs)
Raises the TriggeringTransition event.
Declaration
protected virtual void OnTriggeringTransition(TriggeringTransitionEventArgs e)
Parameters
e
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
public void PrepareAnimation()
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 Value
TriggeringTransition
Occurs before the transition is started.
Declaration
public event EventHandler<TriggeringTransitionEventArgs> TriggeringTransition
Event Value