TransitionPreview Class
A control that provides a preview of a Transition.
public class TransitionPreview : Control
- Inheritance:
- object Visual UIElement FrameworkElement Control object
Remarks
For detailed documentation on this control's features and how to use them, please see the Shared Media Animation documentation topic.
Constructors
TransitionPreview()
Initializes an instance of the TransitionPreview
class.
public TransitionPreview()
Properties
DefaultDirection
Gets or sets the default TransitionDirection to use for transitions that use a direction.
public TransitionDirection DefaultDirection { get; set; }
Property Value
- TransitionDirection:
The default TransitionDirection to use for transitions that use a direction. The default value is
Forward
.
DefaultDuration
Gets or sets the default length of time for which a transition plays, not counting repetitions.
public Duration DefaultDuration { get; set; }
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
0.5
seconds.
DefaultMode
Gets or sets the default TransitionMode to use for transitions that use a mode.
public TransitionMode DefaultMode { get; set; }
Property Value
- TransitionMode:
The default TransitionMode to use for transitions that use a mode. The default value is
In
.
Transition
Gets or sets the Transition to preview.
TransitionSelector
Gets or sets the TransitionSelector to use for selecting a Transition to preview.
public TransitionSelector TransitionSelector { get; set; }
Property Value
- TransitionSelector:
The TransitionSelector to use for selecting a Transition to preview.
Methods
OnApplyTemplate()
Invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
Fields
DefaultDirectionProperty
Identifies the DefaultDirection dependency property. This field is read-only.
public static readonly DependencyProperty DefaultDirectionProperty
DefaultDurationProperty
Identifies the DefaultDuration dependency property. This field is read-only.
public static readonly DependencyProperty DefaultDurationProperty
DefaultModeProperty
Identifies the DefaultMode dependency property. This field is read-only.
public static readonly DependencyProperty DefaultModeProperty
TransitionProperty
Identifies the Transition dependency property. This field is read-only.
public static readonly DependencyProperty TransitionProperty
TransitionSelectorProperty
Identifies the TransitionSelector dependency property. This field is read-only.
public static readonly DependencyProperty TransitionSelectorProperty