Table of Contents

Class Behavior<T>

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll

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

public abstract class Behavior<T> : Behavior, IAnimatable, IAttachedObject where T : DependencyObject

Type Parameters

T

The type the Behavior<T> can be attached to.

Inheritance
Behavior<T>
Implements
Derived
Inherited Members
Extension Methods

Remarks

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.

Constructors

Behavior()

Initializes a new instance of the Behavior<T> class.

protected Behavior()

Properties

AssociatedObject

Gets the object to which this Behavior<T> is attached.

protected T AssociatedObject { get; }

Property Value

T