Class TimerTrigger
A trigger that is triggered by a specified event occurring on its source and fires after a delay when that event is fired.
public class TimerTrigger : EventTrigger, IAnimatable, IAttachedObject
- Inheritance
-
TimerTrigger
- Implements
- Inherited Members
- Extension Methods
Constructors
TimerTrigger()
Initializes a new instance of the TimerTrigger class.
public TimerTrigger()
Fields
MillisecondsPerTickProperty
public static readonly DependencyProperty MillisecondsPerTickProperty
Field Value
TotalTicksProperty
public static readonly DependencyProperty TotalTicksProperty
Field Value
Properties
MillisecondsPerTick
Gets or sets the number of milliseconds to wait between ticks. This is a dependency property.
public double MillisecondsPerTick { get; set; }
Property Value
TotalTicks
Gets or sets the total number of ticks to be fired before the trigger is finished. This is a dependency property.
public int TotalTicks { get; set; }
Property Value
Methods
OnDetaching()
Called when the trigger is being detached from its AssociatedObject, but before it has actually occurred.
protected override void OnDetaching()
OnEvent(EventArgs)
Called when the event associated with this EventTriggerBase is fired. By default, this will invoke all actions on the trigger.
protected override void OnEvent(EventArgs eventArgs)
Parameters
Remarks
Override this to provide more granular control over when actions associated with this trigger will be invoked.