StoryboardTransition Class
A Storyboard-based transition between two elements.
public class StoryboardTransition : StoryboardTransitionBase, ICloneable
- Inheritance:
- object Transition StoryboardTransitionBase object
- Implements:
- ICloneable
Constructors
StoryboardTransition()
Initializes an instance of the class.
public StoryboardTransition()
Properties
FromContentStoryboard
The Storyboard that should be applied to the "from" content when the transition occurs.
FromContentStyle
The Style that should be applied to the "from" content when the transition begins.
ToContentStoryboard
The Storyboard that should be applied to the "to" content when the transition occurs.
public Storyboard? ToContentStoryboard { get; set; }
Property Value
- Storyboard:
The Storyboard that should be applied to the "to" content when the transition occurs.
ToContentStyle
The Style that should be applied to the "to" content when the transition begins.
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
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
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
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
FromContentStoryboardProperty
Defines the FromContentStoryboard property.
public static readonly DependencyProperty FromContentStoryboardProperty
FromContentStyleProperty
Defines the FromContentStyle property.
public static readonly DependencyProperty FromContentStyleProperty
ToContentStoryboardProperty
Defines the ToContentStoryboard property.
public static readonly DependencyProperty ToContentStoryboardProperty
ToContentStyleProperty
Defines the ToContentStyle property.
public static readonly DependencyProperty ToContentStyleProperty
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