Table of Contents

Class TimerTrigger

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll

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

DependencyProperty

TotalTicksProperty

public static readonly DependencyProperty TotalTicksProperty

Field Value

DependencyProperty

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

double

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

int

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

eventArgs EventArgs

The EventArgs instance containing the event data.

Remarks

Override this to provide more granular control over when actions associated with this trigger will be invoked.