Class TransitionPresenter
This class represents a ContentPresenter that changes its content with a transition.
Inheritance
Namespace: Telerik.Windows.Controls.TransitionControl
Assembly: Telerik.Windows.Controls.dll
Syntax
public class TransitionPresenter : ContentPresenter
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
System.Windows.DependencyProperty
|
CurrentContentProperty
Identifies the CurrentContent property.
Declaration
public static readonly DependencyProperty CurrentContentProperty
Field Value
System.Windows.DependencyProperty
|
CurrentContentTemplateProperty
Identifies the CurrentContentTemplate property.
Declaration
public static readonly DependencyProperty CurrentContentTemplateProperty
Field Value
System.Windows.DependencyProperty
|
DurationProperty
Identifies the Duration property.
Declaration
public static readonly DependencyProperty DurationProperty
Field Value
System.Windows.DependencyProperty
|
EasingProperty
Identifies the Easing property.
Declaration
public static readonly DependencyProperty EasingProperty
Field Value
System.Windows.DependencyProperty
|
HostProperty
Identifies the Host property.
Declaration
public static readonly DependencyProperty HostProperty
Field Value
System.Windows.DependencyProperty
|
IsTransitionPlayingProperty
Identifies the IsTransitionPlaying property.
Declaration
public static readonly DependencyProperty IsTransitionPlayingProperty
Field Value
System.Windows.DependencyProperty
|
OldContentPresenterProperty
Identifies the OldContentPresenter property.
Declaration
public static readonly DependencyProperty OldContentPresenterProperty
Field Value
System.Windows.DependencyProperty
|
OldVisualBrushProperty
Identifies the OldVisualBrush property..
Declaration
public static readonly DependencyProperty OldVisualBrushProperty
Field Value
System.Windows.DependencyProperty
|
OldVisualHeightProperty
Identifies the OldVisualHeight property.
Declaration
public static readonly DependencyProperty OldVisualHeightProperty
Field Value
System.Windows.DependencyProperty
|
OldVisualWidthProperty
Identifies the OldVisualWidth property.
Declaration
public static readonly DependencyProperty OldVisualWidthProperty
Field Value
System.Windows.DependencyProperty
|
TransitionProperty
Identifies the Transition property.
Declaration
public static readonly DependencyProperty TransitionProperty
Field Value
System.Windows.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.
Declaration
public object CurrentContent { get; set; }
Property Value
System.Object
|
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
System.Windows.DataTemplate
|
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
|
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
System.Windows.Controls.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
System.Windows.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
System.Windows.Media.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
System.Double
|
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
System.Double
|
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
GetAnimationStretch(DependencyObject)
Gets a value describing the stretch to be used for the transition animation.
Declaration
public static Stretch GetAnimationStretch(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
|
Returns
System.Windows.Media.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
System.Windows.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
System.Windows.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
System.Windows.DependencyObject
obj
|
System.Windows.Media.Stretch
value
|
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>
|