Table of Contents

Class MousePressTrigger

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

按住会没间隔一段时间执行

public class MousePressTrigger : EventTriggerBase<UIElement>, IAnimatable, IAttachedObject
Inheritance
MousePressTrigger
Implements
Derived
Inherited Members
Extension Methods

Constructors

MousePressTrigger()

public MousePressTrigger()

Fields

IntervalProperty

public static readonly DependencyProperty IntervalProperty

Field Value

DependencyProperty

MouseButtonProperty

public static readonly DependencyProperty MouseButtonProperty

Field Value

DependencyProperty

UseInvokeOnDownProperty

public static readonly DependencyProperty UseInvokeOnDownProperty

Field Value

DependencyProperty

Properties

Interval

public double Interval { get; set; }

Property Value

double

MouseButton

public MouseButton MouseButton { get; set; }

Property Value

MouseButton

UseInvokeOnDown

public bool UseInvokeOnDown { get; set; }

Property Value

bool

Methods

ElapsedInvokeActions()

protected virtual void ElapsedInvokeActions()

GetEventName()

Specifies the name of the Event this EventTriggerBase is listening for.

protected override string GetEventName()

Returns

string

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.

Stop()

protected void Stop()