Share via


Interaction.GetBehaviors Method

Gets the BehaviorCollection associated with a specified object.

Namespace:  Microsoft.Xaml.Interactivity
Assembly:  Microsoft.Xaml.Interactivity (in Microsoft.Xaml.Interactivity.dll)

Syntax

'Declaration
Public Shared Function GetBehaviors ( _
    obj As DependencyObject _
) As BehaviorCollection
public static BehaviorCollection GetBehaviors(
    DependencyObject obj
)
public:
static BehaviorCollection^ GetBehaviors(
    DependencyObject^ obj
)
static member GetBehaviors : 
        obj:DependencyObject -> BehaviorCollection
public static function GetBehaviors(
    obj : DependencyObject
) : BehaviorCollection

Parameters

Return Value

Type: Microsoft.Xaml.Interactivity.BehaviorCollection
A BehaviorCollection containing the behaviors associated with the specified object.

.NET Framework Security

See Also

Reference

Interaction Class

Microsoft.Xaml.Interactivity Namespace