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
obj
Type: DependencyObjectThe DependencyObject from which to retrieve the BehaviorCollection.
Return Value
Type: Microsoft.Xaml.Interactivity.BehaviorCollection
A BehaviorCollection containing the behaviors associated with the specified object.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.