Share via


Interaction.SetBehaviors Method

Sets the BehaviorCollection associated with a specified object.

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

Syntax

'Declaration
Public Shared Sub SetBehaviors ( _
    obj As DependencyObject, _
    value As BehaviorCollection _
)
public static void SetBehaviors(
    DependencyObject obj,
    BehaviorCollection value
)
public:
static void SetBehaviors(
    DependencyObject^ obj, 
    BehaviorCollection^ value
)
static member SetBehaviors : 
        obj:DependencyObject * 
        value:BehaviorCollection -> unit
public static function SetBehaviors(
    obj : DependencyObject, 
    value : BehaviorCollection
)

Parameters

.NET Framework Security

See Also

Reference

Interaction Class

Microsoft.Xaml.Interactivity Namespace