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
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.
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.
ZoomInPercentage
Gets or sets 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 percentage by which to scale inner-zoomed content (content that extends inside of the transition presenter). The default value is
0.2
.
Remarks
The value must be between 0
and 0.5
.
ZoomOutPercentage
Gets or sets 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 percentage by which to scale outer-zoomed content (content that extends outside of the transition presenter). 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 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
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.
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
Fields
BeginTimeProperty
Identifies the BeginTime dependency property. This field is read-only.
public static readonly DependencyProperty BeginTimeProperty
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
ZoomInPercentageProperty
Identifies the ZoomInPercentage dependency property. This field is read-only.
public static readonly DependencyProperty ZoomInPercentageProperty
ZoomOutPercentageProperty
Identifies the ZoomOutPercentage dependency property. This field is read-only.
public static readonly DependencyProperty ZoomOutPercentageProperty
Inherited Members
- StoryboardTransitionBase.GetFromContentStyle(TransitionPresenter, FrameworkElement, FrameworkElement)
- StoryboardTransitionBase.GetToContentStyle(TransitionPresenter, FrameworkElement, FrameworkElement)
- StoryboardTransitionBase.OnCompleted(TransitionPresenter, FrameworkElement, object, FrameworkElement, object)
- StoryboardTransitionBase.OnStarted(TransitionPresenter, FrameworkElement, FrameworkElement)
- Transition.ClipToBoundsProperty
- Transition.IsToContentTopMostProperty
- Transition.Clone()
- Transition.EndTransition(TransitionPresenter, FrameworkElement, object, FrameworkElement, object)
- Transition.GetOppositeDirection(TransitionDirection)
- Transition.GetOppositeMode(TransitionMode)
- Transition.GetResolvedDirection(TransitionDirection, TransitionDirection)
- Transition.ClipToBounds
- Transition.IsToContentTopMost