TriggerAction 类

代表封装功能单元的可附加对象。

命名空间: System.Windows.Interactivity
程序集: System.Windows.Interactivity(在 system.windows.interactivity.dll 中)

语法

声明
<DefaultTriggerAttribute(GetType(UIElement), GetType(EventTrigger), "MouseLeftButtonDown")> _
<DefaultTriggerAttribute(GetType(ButtonBase), GetType(EventTrigger), "Click")> _
Public MustInherit Class TriggerAction
    Inherits Animatable
    Implements IAttachedObject
用法
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

注解

这是基础结构类。操作设计者应从 TriggerAction<T> 而不是从此类中派生。

继承层次结构

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

线程安全性

此类型的任何公共静态(Visual Basic 中的 Shared )成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

参考

TriggerAction 成员
System.Windows.Interactivity 命名空间