Share via


TriggerAction Class

Represents an attachable object that encapsulates a unit of functionality.

Namespace: System.Windows.Interactivity
Assembly: System.Windows.Interactivity (in system.windows.interactivity.dll)

Syntax

'Declaration
<DefaultTriggerAttribute(GetType(UIElement), GetType(EventTrigger), "MouseLeftButtonDown")> _
<DefaultTriggerAttribute(GetType(ButtonBase), GetType(EventTrigger), "Click")> _
Public MustInherit Class TriggerAction
    Inherits Animatable
    Implements IAttachedObject
'Usage
Dim instance As TriggerAction
[DefaultTriggerAttribute(typeof(UIElement), typeof(EventTrigger), "MouseLeftButtonDown")] 
[DefaultTriggerAttribute(typeof(ButtonBase), typeof(EventTrigger), "Click")] 
public abstract class TriggerAction : Animatable, IAttachedObject
[DefaultTriggerAttribute(typeof(UIElement), typeof(EventTrigger), L"MouseLeftButtonDown")] 
[DefaultTriggerAttribute(typeof(ButtonBase), typeof(EventTrigger), L"Click")] 
public ref class TriggerAction abstract : public Animatable, IAttachedObject
/** @attribute DefaultTriggerAttribute(System.Windows.UIElement, System.Windows.Interactivity.EventTrigger, "MouseLeftButtonDown") */ 
/** @attribute DefaultTriggerAttribute(System.Windows.Controls.Primitives.ButtonBase, System.Windows.Interactivity.EventTrigger, "Click") */ 
public abstract class TriggerAction extends Animatable implements IAttachedObject
DefaultTriggerAttribute(System.Windows.UIElement, System.Windows.Interactivity.EventTrigger, "MouseLeftButtonDown") 
DefaultTriggerAttribute(System.Windows.Controls.Primitives.ButtonBase, System.Windows.Interactivity.EventTrigger, "Click") 
public abstract class TriggerAction extends Animatable implements IAttachedObject

Remarks

This is an infrastructure class. Action authors should derive from TriggerAction<T> instead of this class.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
     System.Windows.DependencyObject
       System.Windows.Freezable
         System.Windows.Media.Animation.Animatable
          System.Windows.Interactivity.TriggerAction
             System.Windows.Interactivity.TargetedTriggerAction
             System.Windows.Interactivity.TriggerAction

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

TriggerAction Members
System.Windows.Interactivity Namespace