EventTriggerBase Generic Class
Represents a trigger that can listen to an element other than its AssociatedObject.
Namespace: System.Windows.Interactivity
Assembly: System.Windows.Interactivity (in system.windows.interactivity.dll)
Syntax
'Declaration
Public MustInherit Class EventTriggerBase(Of T)
Inherits EventTriggerBase
'Usage
Dim instance As EventTriggerBase(Of T)
public abstract class EventTriggerBase<T> : EventTriggerBase
generic<typename T>
public ref class EventTriggerBase abstract : public EventTriggerBase
Remarks
EventTriggerBase extends TriggerBase to add knowledge of another object than the one it is attached to. This allows a user to attach a Trigger/Action pair to one element and invoke the Action in response to a change in another object somewhere else. Override OnSourceChanged to hook or unhook handlers on the source element, and OnAttached/OnDetaching for the associated element. The type of the Source element can be constrained by the generic type parameter. If you need control over the type of the AssociatedObject, set a TypeConstraintAttribute on your derived type.
Inheritance Hierarchy
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.EventTriggerBase
Microsoft.Expression.Interactivity.Input.KeyTrigger
System.Windows.Interactivity.EventTrigger
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
EventTriggerBase Members
System.Windows.Interactivity Namespace