Class RadTransitionControl
This class represents a ContentControl that changes its content with a transition.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
[TelerikToolboxCategory("Containers")]
public class RadTransitionControl : ContentControl
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
System.Windows.DependencyProperty
|
EasingProperty
Identifies the AnimationEasing property.
Declaration
public static readonly DependencyProperty EasingProperty
Field Value
System.Windows.DependencyProperty
|
IsTransitionIdleProperty
Identifies the IsTransitionIdle property.
Declaration
public static readonly DependencyProperty IsTransitionIdleProperty
Field Value
System.Windows.DependencyProperty
|
TransitionProperty
Identifies the Transition property.
Declaration
public static readonly DependencyProperty TransitionProperty
Field Value
System.Windows.DependencyProperty
|
Properties
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
|
IsTransitionIdle
Gets an indication if currently there is no Transition animating the TransitionPresenter.
Declaration
public bool IsTransitionIdle { get; }
Property Value
System.Boolean
|
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
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
TransitionStatusChangedEventArgs
e
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
System.Windows.Automation.Peers.AutomationPeer
|
OnTriggeringTransition(TriggeringTransitionEventArgs)
Raises the TriggeringTransition event.
Declaration
protected virtual void OnTriggeringTransition(TriggeringTransitionEventArgs e)
Parameters
TriggeringTransitionEventArgs
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 Type
System.EventHandler<TransitionStatusChangedEventArgs>
|
TriggeringTransition
Occurs before the transition is started.
Declaration
public event EventHandler<TriggeringTransitionEventArgs> TriggeringTransition
Event Type
System.EventHandler<TriggeringTransitionEventArgs>
|