TransitionPreview Class
A control that provides a preview of a Transition.
[TemplatePart(Name = "PART_Presenter", Type = typeof(TransitionPresenter))]
public class TransitionPreview : Control
- Inheritance:
- object Visual UIElement FrameworkElement Control object
Constructors
TransitionPreview()
Initializes an instance of the class.
public TransitionPreview()
Properties
DefaultDirection
The default TransitionDirection to use for transitions that use a direction.
public TransitionDirection DefaultDirection { get; set; }
Property Value
- TransitionDirection:
The default value is Forward.
DefaultDuration
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.5seconds.
DefaultMode
The default TransitionMode to use for transitions that use a mode.
public TransitionMode DefaultMode { get; set; }
Property Value
- TransitionMode:
The default value is In.
Transition
The Transition to preview.
TransitionSelector
The TransitionSelector to use for selecting a Transition to preview.
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().
public override void OnApplyTemplate()
Fields
DefaultDirectionProperty
Defines the DefaultDirection property.
public static readonly DependencyProperty DefaultDirectionProperty
DefaultDurationProperty
Defines the DefaultDuration property.
public static readonly DependencyProperty DefaultDurationProperty
DefaultModeProperty
Defines the DefaultMode property.
public static readonly DependencyProperty DefaultModeProperty
TransitionProperty
Defines the Transition property.
public static readonly DependencyProperty TransitionProperty
TransitionSelectorProperty
Defines the TransitionSelector property.
public static readonly DependencyProperty TransitionSelectorProperty