StoryboardTransitionBase Class
A base class for a Storyboard-based transition between two elements.
public abstract class StoryboardTransitionBase : Transition, ICloneable
- Inheritance:
- Object DispatcherObject DependencyObject Transition Object
- Derived:
- BarnDoorWipeTransition BarWipeTransition BoxWipeTransition FadedZoomTransition FadeTransition FourBoxWipeTransition SlideTransition StoryboardTransition WedgeWipeTransition
- Implements:
- ICloneable
Constructors
StoryboardTransitionBase()
protected StoryboardTransitionBase()
Methods
GetFromContentStoryboard(TransitionPresenter, FrameworkElement)
Returns the Storyboard to apply to the "from" content.
protected virtual 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:
The Storyboard to apply to the "from" content.
GetFromContentStyle(TransitionPresenter, FrameworkElement)
Returns the Style to apply to the "from" content during the transition.
protected virtual 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
GetFromContentStyle(TransitionPresenter, FrameworkElement, FrameworkElement)
Returns the Style to apply to the "from" content during the transition.
protected virtual Style GetFromContentStyle(TransitionPresenter presenter, FrameworkElement fromContent, FrameworkElement toContent)
Parameter | Type | Description |
---|---|---|
presenter | TransitionPresenter | The TransitionPresenter that is managing the transition. |
fromContent | FrameworkElement | The element requesting a Style. |
toContent | FrameworkElement | The element to which a transition is occurring. |
Returns
GetToContentStoryboard(TransitionPresenter, FrameworkElement)
Returns the Storyboard to apply to the "to" content.
protected virtual 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:
The Storyboard to apply to the "to" content.
GetToContentStyle(TransitionPresenter, FrameworkElement)
Returns the Style to apply to the "to" content during the transition.
protected virtual 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
GetToContentStyle(TransitionPresenter, FrameworkElement, FrameworkElement)
Returns the Style to apply to the "to" content during the transition.
protected virtual Style GetToContentStyle(TransitionPresenter presenter, FrameworkElement toContent, FrameworkElement fromContent)
Parameter | Type | Description |
---|---|---|
presenter | TransitionPresenter | The TransitionPresenter that is managing the transition. |
toContent | FrameworkElement | The element requesting a Style. |
fromContent | FrameworkElement | The element from which a transition is occurring. |
Returns
OnCompleted(TransitionPresenter, FrameworkElement, Object, FrameworkElement, Object)
Occurs when the transition has completed.
protected override void OnCompleted(TransitionPresenter presenter, FrameworkElement fromContent, object fromContentData, FrameworkElement toContent, object toContentData)
Parameter | Type | Description |
---|---|---|
presenter | TransitionPresenter | The TransitionPresenter that is managing the transition. |
fromContent | FrameworkElement | The element from which a transition is occurring. |
fromContentData | Object | Optional data related to the "from" element. |
toContent | FrameworkElement | The element to which a transition is occurring. |
toContentData | Object | Optional data related to the "to" element. |
Remarks
Place code to perform any post-transition cleanup in an override of this method.
OnStarted(TransitionPresenter, FrameworkElement, FrameworkElement)
Occurs when the transition should be started.
protected override void OnStarted(TransitionPresenter presenter, FrameworkElement fromContent, FrameworkElement toContent)
Parameter | Type | Description |
---|---|---|
presenter | TransitionPresenter | The TransitionPresenter that is managing the transition. |
fromContent | FrameworkElement | The element from which a transition is occurring. |
toContent | FrameworkElement | The element to which a transition is occurring. |
Remarks
Place code to perform the transition in an override of this method.
Inherited Members
- Transition.ClipToBoundsProperty
- Transition.IsToContentTopMostProperty
- Transition.ICloneable.Clone()
- Transition.Clone()
- Transition.EndTransition(TransitionPresenter, FrameworkElement, Object, FrameworkElement, Object)
- Transition.GetOppositeDirection(TransitionDirection)
- Transition.GetOppositeMode(TransitionMode)
- Transition.GetOppositeTransition()
- Transition.GetResolvedDirection(TransitionDirection, TransitionDirection)
- Transition.ClipToBounds
- Transition.IsToContentTopMost
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()