Interaction.GetTriggers Method

Gets the TriggerCollection containing the triggers associated with the specified object.

Namespace: System.Windows.Interactivity
Assembly: System.Windows.Interactivity (in system.windows.interactivity.dll)

Syntax

'Declaration
Public Shared Function GetTriggers ( _
    obj As DependencyObject _
) As TriggerCollection
'Usage
Dim obj As DependencyObject
Dim returnValue As TriggerCollection

returnValue = Interaction.GetTriggers(obj)
public static TriggerCollection GetTriggers (
    DependencyObject obj
)
public:
static TriggerCollection^ GetTriggers (
    DependencyObject^ obj
)
public static TriggerCollection GetTriggers (
    DependencyObject obj
)
public static function GetTriggers (
    obj : DependencyObject
) : TriggerCollection

Parameters

obj

The object from which to retrieve the triggers.

Return Value

A TriggerCollection containing the triggers 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