ClassTransitionPresenter
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
TransitionPresenter()
Initializes a new instance of the TransitionPresenter class.
Declaration
public TransitionPresenter()
Fields
AnimationStretchProperty
Identifies the AnimationStretch attached property.
Declaration
public static readonly DependencyProperty AnimationStretchProperty
Field Value
DependencyProperty
CurrentContentProperty
Identifies the CurrentContent property.
Declaration
public static readonly DependencyProperty CurrentContentProperty
Field Value
DependencyProperty
CurrentContentTemplateProperty
Identifies the CurrentContentTemplate property.
Declaration
public static readonly DependencyProperty CurrentContentTemplateProperty
Field Value
DependencyProperty
DurationProperty
Identifies the Duration property.
Declaration
public static readonly DependencyProperty DurationProperty
Field Value
DependencyProperty
EasingProperty
Identifies the Easing property.
Declaration
public static readonly DependencyProperty EasingProperty
Field Value
DependencyProperty
HostProperty
Identifies the Host property.
Declaration
public static readonly DependencyProperty HostProperty
Field Value
DependencyProperty
IsTransitionPlayingProperty
Identifies the IsTransitionPlaying property.
Declaration
public static readonly DependencyProperty IsTransitionPlayingProperty
Field Value
DependencyProperty
OldContentPresenterProperty
Identifies the OldContentPresenter property.
Declaration
public static readonly DependencyProperty OldContentPresenterProperty
Field Value
DependencyProperty
OldVisualBrushProperty
Identifies the OldVisualBrush property..
Declaration
public static readonly DependencyProperty OldVisualBrushProperty
Field Value
DependencyProperty
OldVisualHeightProperty
Identifies the OldVisualHeight property.
Declaration
public static readonly DependencyProperty OldVisualHeightProperty
Field Value
DependencyProperty
OldVisualWidthProperty
Identifies the OldVisualWidth property.
Declaration
public static readonly DependencyProperty OldVisualWidthProperty
Field Value
DependencyProperty
TransitionProperty
Identifies the Transition property.
Declaration
public static readonly DependencyProperty TransitionProperty
Field Value
DependencyProperty
Properties
CurrentContent
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.
CurrentContentTemplate
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.
Declaration
public DataTemplate CurrentContentTemplate { get; set; }
Property Value
DataTemplate
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
Host
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.
Declaration
public Panel Host { get; set; }
Property Value
Panel
OldContentPresenter
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.
Declaration
public FrameworkElement OldContentPresenter { get; set; }
Property Value
FrameworkElement
OldVisualBrush
Gets or sets a value, describing the texture to be used as initial when transitioning. This is a DependencyProperty.
Declaration
public Brush OldVisualBrush { get; protected set; }
Property Value
Brush
OldVisualHeight
Gets or sets a value, describing the Height of the old content when transitioning. This is a DependencyProperty.
Declaration
public double OldVisualHeight { get; protected set; }
Property Value
OldVisualWidth
Gets or sets a value, describing the Width of the old content when transitioning. This is a DependencyProperty.
Declaration
public double OldVisualWidth { get; protected set; }
Property Value
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
GetAnimationStretch(DependencyObject)
Gets a value describing the stretch to be used for the transition animation.
Declaration
public static Stretch GetAnimationStretch(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
Stretch
MeasureOverride(Size)
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSize
Size
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.
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()
SetAnimationStretch(DependencyObject, Stretch)
Sets a value describing the stretch to be used for the transition animation.
Declaration
public static void SetAnimationStretch(DependencyObject obj, Stretch value)
Parameters
obj
DependencyObject
value
Stretch
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