Class TriggerBase<T>
Represents an object that can invoke actions conditionally.
public abstract class TriggerBase<T> : TriggerBase, IAnimatable, IAttachedObject where T : DependencyObject
Type Parameters
T
The type to which this trigger can be attached.
- Inheritance
-
TriggerBase<T>
- Implements
- Derived
- Inherited Members
- Extension Methods
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
TriggerBase()
Initializes a new instance of the TriggerBase<T> class.
protected TriggerBase()
Properties
AssociatedObject
Gets the object to which the trigger is attached.
protected T AssociatedObject { get; }
Property Value
- T
The associated object.
AssociatedObjectTypeConstraint
Gets the type constraint of the associated object.
protected override sealed Type AssociatedObjectTypeConstraint { get; }
Property Value
- Type
The associated object type constraint.