In This Article

FadeTransition Class

A crossfade transition between two elements.

public class FadeTransition : StoryboardTransitionBase, ICloneable
Inheritance:
Object DispatcherObject DependencyObject Transition StoryboardTransitionBase Object
Implements:
ICloneable

Constructors

FadeTransition()

public FadeTransition()

Properties

BeginTime

Gets or sets the time at which this transition should begin.

public TimeSpan BeginTime { get; set; }

Property Value

TimeSpan:

The time at which this transition should begin, relative to the parent's begin time.

BlurRadius

Gets or sets the radius of a blur effect to apply to the fade.

public double BlurRadius { get; set; }

Property Value

Double:

The radius of a blur effect to apply to the fade. The default is 0.

Remarks

A number greater than 0 applies a blur bitmap effect to the fade. A recommended blur radius is 5.

Duration

Gets or sets the length of time for which this transition plays, not counting repetitions.

public Duration Duration { get; set; }

Property Value

Duration:

The transition's simple duration: the amount of time this effect takes to complete a single forward iteration. The default value is Automatic.

Mode

Gets or sets a TransitionMode specifying the mode of the transition.

public TransitionMode Mode { get; set; }

Property Value

TransitionMode:

A TransitionMode specifying the mode of the transition.

Methods

GetFromContentStoryboard(TransitionPresenter, FrameworkElement)

Returns the Storyboard to apply to the "from" content.

protected override Storyboard GetFromContentStoryboard(TransitionPresenter presenter, FrameworkElement content)
Parameter Type Description
presenter TransitionPresenter

The TransitionPresenter that is managing the transition.

content FrameworkElement

The element requesting a Storyboard.

Returns

Storyboard:

The Storyboard to apply to the "from" content.

GetFromContentStyle(TransitionPresenter, FrameworkElement)

Returns the Style to apply to the "from" content during the transition.

protected override Style GetFromContentStyle(TransitionPresenter presenter, FrameworkElement content)
Parameter Type Description
presenter TransitionPresenter

The TransitionPresenter that is managing the transition.

content FrameworkElement

The element requesting a Style.

Returns

Style:

The Style to apply to the "from" content during the transition.

GetOppositeTransition()

Returns a variation of the transition that can be used for backing out a content that was inserted into the presenter using this transition.

public override Transition GetOppositeTransition()

Returns

Transition:

A variation of the transition that can be used for backing out a content that was inserted into the presenter using this transition.

GetToContentStoryboard(TransitionPresenter, FrameworkElement)

Returns the Storyboard to apply to the "to" content.

protected override Storyboard GetToContentStoryboard(TransitionPresenter presenter, FrameworkElement content)
Parameter Type Description
presenter TransitionPresenter

The TransitionPresenter that is managing the transition.

content FrameworkElement

The element requesting a Storyboard.

Returns

Storyboard:

The Storyboard to apply to the "to" content.

Fields

BeginTimeProperty

Identifies the BeginTime dependency property. This field is read-only.

public static readonly DependencyProperty BeginTimeProperty

BlurRadiusProperty

Identifies the BlurRadius dependency property. This field is read-only.

public static readonly DependencyProperty BlurRadiusProperty

DurationProperty

Identifies the Duration dependency property. This field is read-only.

public static readonly DependencyProperty DurationProperty

ModeProperty

Identifies the Mode dependency property. This field is read-only.

public static readonly DependencyProperty ModeProperty

Inherited Members