In This Article

FadedZoomTransition Class

A crossfade transition between two elements that zooms the new content in as well.

public class FadedZoomTransition : StoryboardTransitionBase, ICloneable
Inheritance:
object Transition StoryboardTransitionBase object
Implements:
ICloneable

Constructors

FadedZoomTransition()

Initializes an instance of the class.

public FadedZoomTransition()

Properties

BeginTime

The time at which this transition should begin.

public TimeSpan BeginTime { get; set; }

Property Value

TimeSpan

Duration

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

A TransitionMode specifying the mode of the transition.

public TransitionMode Mode { get; set; }

Property Value

TransitionMode

ZoomInPercentage

The percentage by which to scale inner-zoomed content (content that extends inside of the transition presenter).

public double ZoomInPercentage { get; set; }

Property Value

double:

The default value is 0.2.

Remarks

The value must be between 0 and 0.5.

ZoomOutPercentage

The percentage by which to scale outer-zoomed content (content that extends outside of the transition presenter).

public double ZoomOutPercentage { get; set; }

Property Value

double:

The default value is 0.2.

Remarks

The value must be between 0 and 0.5.

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 Style.

Returns

Storyboard

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

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

Remarks

Override this method to return an opposite variation of the transition if the transition supports the concept.

If the transition uses a TransitionMode, its value should be flipped using the GetOppositeMode(TransitionMode) method.

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 Style.

Returns

Storyboard

GetToContentStyle(TransitionPresenter, FrameworkElement)

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

protected override Style GetToContentStyle(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

Fields

BeginTimeProperty

Defines the BeginTime property.

public static readonly DependencyProperty BeginTimeProperty

DurationProperty

Defines the Duration property.

public static readonly DependencyProperty DurationProperty

ModeProperty

Defines the Mode property.

public static readonly DependencyProperty ModeProperty

ZoomInPercentageProperty

Defines the ZoomInPercentage property.

public static readonly DependencyProperty ZoomInPercentageProperty

ZoomOutPercentageProperty

Defines the ZoomOutPercentage property.

public static readonly DependencyProperty ZoomOutPercentageProperty

Inherited Members

Extension Methods