The base class for a transition between two elements.
- Inheritance:
- object object
- Derived:
-
Storyboard
Transition Base
- Implements:
- ICloneable
Constructors
Transition()
Initializes an instance of the class.
Properties
ClipToBounds
Gets or sets whether the transition should clip the content elements to the container bounds.
Property Value
- bool:
true
if the transition should clip the content elements to the container bounds; otherwise,false
. The default value isfalse
.
IsToContentTopMost
Gets or sets whether the "to" content is topmost.
Property Value
- bool:
true
if the "to" content is topmost; otherwise,false
. The default value istrue
.
Remarks
Transitions that "reveal" the "to" content should return false
.
Methods
Clone()
Creates a clone of the Transition.
Returns
- Transition:
The clone that was created.
EndTransition(TransitionPresenter, FrameworkElement, object, FrameworkElement, object)
Ends a transition, and notifies the presenter that the transition is complete.
Parameter | Type | Description |
---|---|---|
presenter | Transition |
The Transition |
fromContent | Framework |
The element from which a transition is occurring. |
fromContentData | object | Optional data related to the "from" element that is passed to the On |
toContent | Framework |
The element to which a transition is occurring. |
toContentData | object | Optional data related to the "to" element that is passed to the On |
Remarks
This method must be called at the end of the transition so that the presenter is notified of the transition completion.
GetOppositeDirection(TransitionDirection)
Returns the opposite Transition
Parameter | Type | Description |
---|---|---|
direction | Transition |
The Transition |
Returns
- Transition
Direction : The opposite Transition
Direction of the specified TransitionDirection .
GetOppositeMode(TransitionMode)
Returns the opposite Transition
Parameter | Type | Description |
---|---|---|
mode | Transition |
The Transition |
Returns
- Transition
Mode : The opposite Transition
Mode of the specified TransitionMode .
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.
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.
Remarks
Override this method to return an opposite variation of the transition if the transition supports the concept.
If the transition uses a Transition
GetResolvedDirection(TransitionDirection, TransitionDirection)
Returns a resolved Transition
Parameter | Type | Description |
---|---|---|
instanceDirection | Transition |
The instance Transition |
defaultDirection | Transition |
The default Transition |
Returns
- Transition
Direction : The resolved Transition
Direction value.
OnCompleted(TransitionPresenter, FrameworkElement, object, FrameworkElement, object)
Occurs when the transition has completed.
Parameter | Type | Description |
---|---|---|
presenter | Transition |
The Transition |
fromContent | Framework |
The element from which a transition is occurring. |
fromContentData | object | Optional data related to the "from" element. |
toContent | Framework |
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.
Parameter | Type | Description |
---|---|---|
presenter | Transition |
The Transition |
fromContent | Framework |
The element from which a transition is occurring. |
toContent | Framework |
The element to which a transition is occurring. |
Remarks
Place code to perform the transition in an override of this method.
Fields
ClipToBoundsProperty
Identifies the Clip
IsToContentTopMostProperty
Identifies the Is