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 ) 成員均為安全執行緒。任何例項成員則不保證為安全執行緒。