This topic has not yet been rated - Rate this topic

EventTriggerBase Generic Class

Expression Studio 4.0
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)
public abstract class EventTriggerBase<T> : EventTriggerBase
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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000

Target Platforms

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.