TransitionPresenter
This class represents a ContentPresenter that changes its content with a transition.
Definition
Namespace:Telerik.Windows.Controls.TransitionControl
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class TransitionPresenter : ContentPresenter
Inheritance: objectTransitionPresenter
Constructors
Initializes a new instance of the TransitionPresenter class.
public TransitionPresenter()
Fields
AnimationStretchProperty
DependencyProperty
Identifies the AnimationStretch attached property.
public static readonly DependencyProperty AnimationStretchProperty
CurrentContentProperty
DependencyProperty
Identifies the CurrentContent property.
public static readonly DependencyProperty CurrentContentProperty
CurrentContentTemplateProperty
DependencyProperty
Identifies the CurrentContentTemplate property.
public static readonly DependencyProperty CurrentContentTemplateProperty
DurationProperty
DependencyProperty
Identifies the Duration property.
public static readonly DependencyProperty DurationProperty
EasingProperty
DependencyProperty
Identifies the Easing property.
public static readonly DependencyProperty EasingProperty
HostProperty
DependencyProperty
Identifies the Host property.
public static readonly DependencyProperty HostProperty
IsTransitionPlayingProperty
DependencyProperty
Identifies the IsTransitionPlaying property.
public static readonly DependencyProperty IsTransitionPlayingProperty
OldContentPresenterProperty
DependencyProperty
Identifies the OldContentPresenter property.
public static readonly DependencyProperty OldContentPresenterProperty
OldVisualBrushProperty
DependencyProperty
Identifies the OldVisualBrush property..
public static readonly DependencyProperty OldVisualBrushProperty
OldVisualHeightProperty
DependencyProperty
Identifies the OldVisualHeight property.
public static readonly DependencyProperty OldVisualHeightProperty
OldVisualWidthProperty
DependencyProperty
Identifies the OldVisualWidth property.
public static readonly DependencyProperty OldVisualWidthProperty
TransitionProperty
DependencyProperty
Identifies the Transition property.
public static readonly DependencyProperty TransitionProperty
Properties
Gets or sets a the content of the ContentPresenter. This property is needed as a proxy between the actual Content to let the transition logic to take a snapshot of the old content. This is a DependencyProperty.
public object CurrentContent { get; set; }
CurrentContentTemplate
DataTemplate
Gets or sets a the content template of the ContentPresenter. This property is needed as a proxy between the actual ContentTemplate to let the transition logic to take a snapshot of the content with the old template. This is a DependencyProperty.
public DataTemplate CurrentContentTemplate { get; set; }
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; }
Host
Panel
Gets or sets the element used to host both the TransitionPresenter and the OldContent visual. This is most likely to be a Panel for use in the Transitions for layout animation.
public Panel Host { get; set; }
OldContentPresenter
FrameworkElement
Gets or sets a value identifying the element to be used as an old content for the transition animation when not using a shader effect.
public FrameworkElement OldContentPresenter { get; set; }
OldVisualBrush
Brush
Gets or sets a value, describing the texture to be used as initial when transitioning. This is a DependencyProperty.
public Brush OldVisualBrush { get; protected set; }
Gets or sets a value, describing the Height of the old content when transitioning. This is a DependencyProperty.
public double OldVisualHeight { get; protected set; }
Gets or sets a value, describing the Width of the old content when transitioning. This is a DependencyProperty.
public double OldVisualWidth { get; protected set; }
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
Gets a value describing the stretch to be used for the transition animation.
public static Stretch GetAnimationStretch(DependencyObject obj)
Stretch
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
protected override Size MeasureOverride(Size availableSize)
The available size that this object can give to child objects. Infinity can be specified as a value to indicate that the object will size to whatever content is available.
Returns:Size
The size that this object determines it needs during layout, based on its calculations of child object allotted sizes.
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()
Sets a value describing the stretch to be used for the transition animation.
public static void SetAnimationStretch(DependencyObject obj, Stretch value)
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