Export (0) Print
Expand All

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 system.windows.interactivity.dll)

'Declaration
Public MustInherit Class Behavior(Of T As DependencyObject)
	Inherits Behavior
'Usage
Dim instance As Behavior(Of T)

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.

Development Platforms

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

Target Platforms

Show:
© 2014 Microsoft