Represents an element that can display various transitions between two elements.
- Inheritance:
-
object
Visual
UIElement
Framework
Element ContentPresenter object
Remarks
For detailed documentation on this control's features and how to use them, please see the Shared Media Animation documentation topic.
Constructors
TransitionPresenter()
Initializes an instance of the TransitionPresenter
class.
Properties
DefaultDirection
Gets or sets the default Transition
Property Value
- Transition
Direction : The default Transition
Direction to use for transitions that use a direction. The default value isForward
.
DefaultDuration
Gets or sets the default length of time for which a transition plays, not counting repetitions.
Property Value
- Duration:
The presenter's default simple duration for transitions: the amount of time a transition takes to complete a single forward iteration. The default value is
200
milliseconds.
DefaultMode
Gets or sets the default Transition
Property Value
- Transition
Mode : The default Transition
Mode to use for transitions that use a mode. The default value isIn
.
IsFirstContentTransitionEnabled
Gets or sets whether a transition should occur when the first Content is set.
Property Value
IsPostTransitionFocusEnabled
Gets or sets whether focus is set to the content following the completion of a transition.
Property Value
- bool:
true
if focus is set to the content following the completion of a transition; otherwise,false
. The default value isfalse
.
IsTransitioning
Gets whether a transition is currently in progress.
Property Value
- bool:
true
if a transition is currently in progress; otherwise,false
.
IsTransitioningEnabled
Gets or sets whether animated transitioning is enabled.
Property Value
- bool:
true
if animated transitioning is enabled; otherwise,false
. The default value istrue
.
IsTransitioningSuspended
Gets or sets whether animated transitioning is suspended.
Property Value
- bool:
true
if animated transitioning is suspended; otherwise,false
. The default value isfalse
.
Transition
Gets or sets the Transition to use for transitioning between two elements.
Property Value
- Transition:
The Transition to use for transitioning between two elements.
TransitionSelector
Gets or sets the Transition
Property Value
- Transition
Selector : The Transition
Selector to use for programmatically selecting a Transition between two elements.
VisualChildrenCount
Gets the number of child elements for the Visual.
Property Value
- int:
The number of child elements.
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a Framework
Parameter | Type | Description |
---|---|---|
arrangeSize | Size | The final area within the parent that this element should use to arrange itself and its children. |
Returns
- Size:
The actual size used.
ChooseTemplate()
Returns the template to use. This may depend on the content or other properties.
Returns
- Data
Template : The Data
Template to use.
GetVisualChild(int)
Returns the specified Visual in the parent Visual
Parameter | Type | Description |
---|---|---|
index | int | The index of the visual object in the Visual |
Returns
- Visual:
The child in the Visual
Collection at the specified index value.
MeasureOverride(Size)
When overridden in a derived class, measures the size in layout required for child elements and
determines a size for the Framework
Parameter | Type | Description |
---|---|---|
availableSize | Size | The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available. |
Returns
- Size:
The size that this element determines it needs during layout, based on its calculations of child element sizes.
OnTransitionCompleted(object, object)
Raises the Transition
Parameter | Type | Description |
---|---|---|
fromContent | object | The element from which a transition occurred. |
toContent | object | The element to which a transition is occurred. |
Events
TransitionCompleted
Occurs after a transition has completed.
Event Type
Fields
DefaultDirectionProperty
Identifies the Default
DefaultDurationProperty
Identifies the Default
DefaultModeProperty
Identifies the Default
IsFirstContentTransitionEnabledProperty
Identifies the Is
IsPostTransitionFocusEnabledProperty
Identifies the Is
IsTransitioningEnabledProperty
Identifies the Is
IsTransitioningProperty
Identifies the Is
IsTransitioningSuspendedProperty
Identifies the Is
TransitionCompletedEvent
Identifies the Transition
TransitionProperty
Identifies the Transition dependency property. This field is read-only.
TransitionSelectorProperty
Identifies the Transition