Behavior Generic Class

Expression Studio 4.0
Encapsulates state information and zero or more ICommands into an attachable object.

Namespace: System.Windows.Interactivity
Assembly: System.Windows.Interactivity (in

public abstract class Behavior<T> : Behavior where T : DependencyObject

Behavior is the base class for providing attachable state and commands to an object. The types the Behavior can be attached to can be controlled by the generic parameter. Override OnAttached() and OnDetaching() methods to hook and unhook any necessary handlers from the AssociatedObject.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.