Table of Contents

Class MouseTrigger

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

可以注册 单击 双击 ..N击的触发器

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

Fields

ClickCountProperty

public static readonly DependencyProperty ClickCountProperty

Field Value

DependencyProperty

FiredOnProperty

public static readonly DependencyProperty FiredOnProperty

Field Value

DependencyProperty

HandledProperty

public static readonly DependencyProperty HandledProperty

Field Value

DependencyProperty

ModeProperty

public static readonly DependencyProperty ModeProperty

Field Value

DependencyProperty

MouseButtonProperty

public static readonly DependencyProperty MouseButtonProperty

Field Value

DependencyProperty

Properties

ClickCount

public int ClickCount { get; set; }

Property Value

int

FiredOn

Determines whether or not to listen to the KeyDown or KeyUp event.

public KeyTriggerFiredOn FiredOn { get; set; }

Property Value

KeyTriggerFiredOn

Handled

public bool Handled { get; set; }

Property Value

bool

Mode

public MouseTriggerMode Mode { get; set; }

Property Value

MouseTriggerMode

MouseButton

public MouseButton MouseButton { get; set; }

Property Value

MouseButton

Methods

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.