Class MouseTrigger
可以注册 单击 双击 ..N击的触发器
public class MouseTrigger : EventTriggerBase<UIElement>, IAnimatable, IAttachedObject
- Inheritance
-
MouseTrigger
- Implements
- Inherited Members
- Extension Methods
Fields
ClickCountProperty
public static readonly DependencyProperty ClickCountProperty
Field Value
FiredOnProperty
public static readonly DependencyProperty FiredOnProperty
Field Value
HandledProperty
public static readonly DependencyProperty HandledProperty
Field Value
ModeProperty
public static readonly DependencyProperty ModeProperty
Field Value
MouseButtonProperty
public static readonly DependencyProperty MouseButtonProperty
Field Value
Properties
ClickCount
public int ClickCount { get; set; }
Property Value
FiredOn
Determines whether or not to listen to the KeyDown or KeyUp event.
public KeyTriggerFiredOn FiredOn { get; set; }
Property Value
Handled
public bool Handled { get; set; }
Property Value
Mode
public MouseTriggerMode Mode { get; set; }
Property Value
MouseButton
public MouseButton MouseButton { get; set; }
Property Value
Methods
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.