Interaction.GetBehaviors Method
Gets the BehaviorCollection associated with a specified object.
Namespace: System.Windows.Interactivity
Assembly: System.Windows.Interactivity (in system.windows.interactivity.dll)
Syntax
'Declaration
Public Shared Function GetBehaviors ( _
obj As DependencyObject _
) As BehaviorCollection
'Usage
Dim obj As DependencyObject
Dim returnValue As BehaviorCollection
returnValue = Interaction.GetBehaviors(obj)
public static BehaviorCollection GetBehaviors (
DependencyObject obj
)
public:
static BehaviorCollection^ GetBehaviors (
DependencyObject^ obj
)
public static BehaviorCollection GetBehaviors (
DependencyObject obj
)
public static function GetBehaviors (
obj : DependencyObject
) : BehaviorCollection
Parameters
obj
The object from which to retrieve the BehaviorCollection.
Return Value
A BehaviorCollection containing the behaviors associated with the specified object.
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
Interaction Class
Interaction Members
System.Windows.Interactivity Namespace