Class
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:

cs-api-definition
public class TransitionPresenter : ContentPresenter

Inheritance: objectTransitionPresenter

Constructors

TransitionPresenter()

Initializes a new instance of the TransitionPresenter class.

Declaration

cs-api-definition
public TransitionPresenter()

Fields

AnimationStretchProperty

Identifies the AnimationStretch attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty AnimationStretchProperty

Field Value

DependencyProperty

CurrentContentProperty

Identifies the CurrentContent property.

Declaration

cs-api-definition
public static readonly DependencyProperty CurrentContentProperty

Field Value

DependencyProperty

CurrentContentTemplateProperty

Identifies the CurrentContentTemplate property.

Declaration

cs-api-definition
public static readonly DependencyProperty CurrentContentTemplateProperty

Field Value

DependencyProperty

DurationProperty

Identifies the Duration property.

Declaration

cs-api-definition
public static readonly DependencyProperty DurationProperty

Field Value

DependencyProperty

EasingProperty

Identifies the Easing property.

Declaration

cs-api-definition
public static readonly DependencyProperty EasingProperty

Field Value

DependencyProperty

HostProperty

Identifies the Host property.

Declaration

cs-api-definition
public static readonly DependencyProperty HostProperty

Field Value

DependencyProperty

IsTransitionPlayingProperty

Identifies the IsTransitionPlaying property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsTransitionPlayingProperty

Field Value

DependencyProperty

OldContentPresenterProperty

Identifies the OldContentPresenter property.

Declaration

cs-api-definition
public static readonly DependencyProperty OldContentPresenterProperty

Field Value

DependencyProperty

OldVisualBrushProperty

Identifies the OldVisualBrush property..

Declaration

cs-api-definition
public static readonly DependencyProperty OldVisualBrushProperty

Field Value

DependencyProperty

OldVisualHeightProperty

Identifies the OldVisualHeight property.

Declaration

cs-api-definition
public static readonly DependencyProperty OldVisualHeightProperty

Field Value

DependencyProperty

OldVisualWidthProperty

Identifies the OldVisualWidth property.

Declaration

cs-api-definition
public static readonly DependencyProperty OldVisualWidthProperty

Field Value

DependencyProperty

TransitionProperty

Identifies the Transition property.

Declaration

cs-api-definition
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.

Declaration

cs-api-definition
public object CurrentContent { get; set; }

Property Value

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

cs-api-definition
public DataTemplate CurrentContentTemplate { get; set; }

Property Value

DataTemplate

Duration

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

Declaration

cs-api-definition
public TimeSpan Duration { get; set; }

Property Value

TimeSpan

Easing

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

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public double OldVisualHeight { get; protected set; }

Property Value

double

OldVisualWidth

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

Declaration

cs-api-definition
public double OldVisualWidth { get; protected set; }

Property Value

double

Transition

Gets or sets a value, describing the the transition effect to be used for the transition. This is a DependencyProperty.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public void PrepareAnimation()

SetAnimationStretch(DependencyObject, Stretch)

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

Declaration

cs-api-definition
public static void SetAnimationStretch(DependencyObject obj, Stretch value)

Parameters

obj

DependencyObject

value

Stretch

StartAnimation()

Will start the transition animation if one is prepared.

Declaration

cs-api-definition
public void StartAnimation()

Events

TransitionStatusChanged

Invoked when a Transition state changes.

Declaration

cs-api-definition
public event EventHandler<TransitionStatusChangedEventArgs> TransitionStatusChanged

Event Value

EventHandler<TransitionStatusChangedEventArgs>

TriggeringTransition

Occurs before the transition is started.

Declaration

cs-api-definition
public event EventHandler<TriggeringTransitionEventArgs> TriggeringTransition

Event Value

EventHandler<TriggeringTransitionEventArgs>