共用方式為


TriggerBase 類別

代表可以有條件地叫用動作的物件。

命名空間: System.Windows.Interactivity
組件: System.Windows.Interactivity (在 system.windows.interactivity.dll 中)

語法

'宣告
<ContentPropertyAttribute("Actions")> _
Public MustInherit Class TriggerBase
    Inherits Animatable
    Implements IAttachedObject
'用途
Dim instance As TriggerBase
[ContentPropertyAttribute("Actions")] 
public abstract class TriggerBase : Animatable, IAttachedObject
[ContentPropertyAttribute(L"Actions")] 
public ref class TriggerBase abstract : public Animatable, IAttachedObject
/** @attribute ContentPropertyAttribute("Actions") */ 
public abstract class TriggerBase extends Animatable implements IAttachedObject
ContentPropertyAttribute("Actions") 
public abstract class TriggerBase extends Animatable implements IAttachedObject

備註

這是基礎結構類別。觸發程序撰寫者應從 Trigger<T> 衍生,而不是從這個類別衍生。

繼承階層

System.Object
   System.Windows.Threading.DispatcherObject
     System.Windows.DependencyObject
       System.Windows.Freezable
         System.Windows.Media.Animation.Animatable
           System.Windows.Interactivity.TriggerBase
             System.Windows.Interactivity.EventTriggerBase
             System.Windows.Interactivity.TriggerBase

執行緒安全性

此型別的所有公用靜態 (Visual Basic 中為 Shared ) 成員均為安全執行緒。任何例項成員則不保證為安全執行緒。

另請參閱

參照

TriggerBase 成員
System.Windows.Interactivity 命名空間