Class MousePressTrigger
按住会没间隔一段时间执行
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
MouseButtonProperty
public static readonly DependencyProperty MouseButtonProperty
Field Value
UseInvokeOnDownProperty
public static readonly DependencyProperty UseInvokeOnDownProperty
Field Value
Properties
Interval
public double Interval { get; set; }
Property Value
MouseButton
public MouseButton MouseButton { get; set; }
Property Value
UseInvokeOnDown
public bool UseInvokeOnDown { get; set; }
Property Value
Methods
ElapsedInvokeActions()
protected virtual void ElapsedInvokeActions()
GetEventName()
Specifies the name of the Event this EventTriggerBase is listening for.
protected override string GetEventName()
Returns
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.
Stop()
protected void Stop()