New to Telerik UI for WPFStart a free 30-day trial

This class represents a ContentPresenter that changes its content with a transition.

Definition

Namespace:Telerik.Windows.Controls.TransitionControl

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class TransitionPresenter : ContentPresenter

Inheritance: objectTransitionPresenter

Constructors

Initializes a new instance of the TransitionPresenter class.

C#
public TransitionPresenter()

Fields

AnimationStretchProperty

DependencyProperty

Identifies the AnimationStretch attached property.

C#
public static readonly DependencyProperty AnimationStretchProperty

CurrentContentProperty

DependencyProperty

Identifies the CurrentContent property.

C#
public static readonly DependencyProperty CurrentContentProperty

Identifies the CurrentContentTemplate property.

C#
public static readonly DependencyProperty CurrentContentTemplateProperty

DurationProperty

DependencyProperty

Identifies the Duration property.

C#
public static readonly DependencyProperty DurationProperty

EasingProperty

DependencyProperty

Identifies the Easing property.

C#
public static readonly DependencyProperty EasingProperty

HostProperty

DependencyProperty

Identifies the Host property.

C#
public static readonly DependencyProperty HostProperty

IsTransitionPlayingProperty

DependencyProperty

Identifies the IsTransitionPlaying property.

C#
public static readonly DependencyProperty IsTransitionPlayingProperty

OldContentPresenterProperty

DependencyProperty

Identifies the OldContentPresenter property.

C#
public static readonly DependencyProperty OldContentPresenterProperty

OldVisualBrushProperty

DependencyProperty

Identifies the OldVisualBrush property..

C#
public static readonly DependencyProperty OldVisualBrushProperty

OldVisualHeightProperty

DependencyProperty

Identifies the OldVisualHeight property.

C#
public static readonly DependencyProperty OldVisualHeightProperty

OldVisualWidthProperty

DependencyProperty

Identifies the OldVisualWidth property.

C#
public static readonly DependencyProperty OldVisualWidthProperty

TransitionProperty

DependencyProperty

Identifies the Transition property.

C#
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.

C#
public object CurrentContent { get; set; }

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.

C#
public DataTemplate CurrentContentTemplate { get; set; }

Gets or sets the duration of the animation. This is a DependencyProperty.

C#
public TimeSpan Duration { get; set; }

Easing

IEasingFunction

Gets or sets a value describing the easing function to be used for the transition animation.

C#
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.

C#
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.

C#
public FrameworkElement OldContentPresenter { get; set; }

Gets or sets a value, describing the texture to be used as initial when transitioning. This is a DependencyProperty.

C#
public Brush OldVisualBrush { get; protected set; }

Gets or sets a value, describing the Height of the old content when transitioning. This is a DependencyProperty.

C#
public double OldVisualHeight { get; protected set; }

Gets or sets a value, describing the Width of the old content when transitioning. This is a DependencyProperty.

C#
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.

C#
public TransitionProvider Transition { get; set; }

Methods

Gets a value describing the stretch to be used for the transition animation.

C#
public static Stretch GetAnimationStretch(DependencyObject obj)
Parameters:objDependencyObjectReturns:

Stretch

Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSize

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.

C#
public void PrepareAnimation()

Sets a value describing the stretch to be used for the transition animation.

C#
public static void SetAnimationStretch(DependencyObject obj, Stretch value)
Parameters:objDependencyObjectvalueStretch

Will start the transition animation if one is prepared.

C#
public void StartAnimation()

Events

Invoked when a Transition state changes.

C#
public event EventHandler<TransitionStatusChangedEventArgs> TransitionStatusChanged

Occurs before the transition is started.

C#
public event EventHandler<TriggeringTransitionEventArgs> TriggeringTransition