Class TriggerBase<T>
Represents an object that can invoke actions conditionally.
Inheritance
System.Object
TriggerBase<T>
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Interactivity
Assembly: OpenSilver.Interactivity.dll
Syntax
public abstract class TriggerBase<T> : TriggerBase, IAttachedObject where T : DependencyObject
Type Parameters
Name | Description |
---|---|
T | The type to which this trigger can be attached. |
Remarks
TriggerBase is the base class for controlling actions. Override OnAttached() and OnDetaching() to hook and unhook handlers on the AssociatedObject. You may constrain the types that a derived TriggerBase may be attached to by specifying the generic parameter. Call InvokeActions() to fire all Actions associated with this TriggerBase.
Constructors
| Improve this Doc View SourceTriggerBase()
Initializes a new instance of the TriggerBase<T> class.
Declaration
protected TriggerBase()
Properties
| Improve this Doc View SourceAssociatedObject
Gets the object to which the trigger is attached.
Declaration
protected T AssociatedObject { get; }
Property Value
Type | Description |
---|---|
T | The associated object. |
AssociatedObjectTypeConstraint
Gets the type constraint of the associated object.
Declaration
protected sealed override Type AssociatedObjectTypeConstraint { get; }
Property Value
Type | Description |
---|---|
System.Type | The associated object type constraint. |