Behavior Class

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

Namespace: System.Windows.Interactivity
Assembly: System.Windows.Interactivity (in system.windows.interactivity.dll)

Syntax

'Declaration
Public MustInherit Class Behavior
    Inherits Animatable
    Implements IAttachedObject
'Usage
Dim instance As Behavior
public abstract class Behavior : Animatable, IAttachedObject
public ref class Behavior abstract : public Animatable, IAttachedObject
public abstract class Behavior extends Animatable implements IAttachedObject
public abstract class Behavior extends Animatable implements IAttachedObject

Remarks

This is an infrastructure class. Behavior authors should derive from Behavior<T> instead of from this class.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
     System.Windows.DependencyObject
       System.Windows.Freezable
         System.Windows.Media.Animation.Animatable
          System.Windows.Interactivity.Behavior
             System.Windows.Interactivity.Behavior

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

Behavior Members
System.Windows.Interactivity Namespace