Compartilhar via


EventTriggerBehavior Class

Represents a behavior that listens for a specified event on its source and executes its actions when that event is fired.

Inheritance Hierarchy

System.Object
  DependencyObject
    Microsoft.Xaml.Interactions.Core.EventTriggerBehavior

Namespace:  Microsoft.Xaml.Interactions.Core
Assembly:  Microsoft.Xaml.Interactions (in Microsoft.Xaml.Interactions.dll)

Syntax

'Declaration
Public NotInheritable Class EventTriggerBehavior _
    Inherits DependencyObject _
    Implements IBehavior
public sealed class EventTriggerBehavior : DependencyObject, 
    IBehavior
public ref class EventTriggerBehavior sealed : public DependencyObject, 
    IBehavior
[<Sealed>]
type EventTriggerBehavior =  
    class 
        inherit DependencyObject 
        interface IBehavior 
    end
public final class EventTriggerBehavior extends DependencyObject implements IBehavior

The EventTriggerBehavior type exposes the following members.

Constructors

  Name Description
Public method EventTriggerBehavior Initializes a new instance of the EventTriggerBehavior class.

Top

Properties

  Name Description
Public property Actions Gets the collection of actions associated with the behavior. This is a dependency property.
Public property AssociatedObject Gets the DependencyObject to which the IBehavior will be attached.
Public property Dispatcher (Inherited from DependencyObject.)
Public property EventName Gets or sets the name of the event to listen for. This is a dependency property.
Public property SourceObject Gets the SourceObject dependency property.

Top

Methods

  Name Description
Public method Attach Attaches to the specified object.
Public method ClearValue (Inherited from DependencyObject.)
Public method Detach Detaches this instance from its associated object.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetAnimationBaseValue (Inherited from DependencyObject.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValue (Inherited from DependencyObject.)
Public method ReadLocalValue (Inherited from DependencyObject.)
Public method SetValue (Inherited from DependencyObject.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member ActionsProperty Specifies the collection of actions associated with the behavior.
Public fieldStatic member EventNameProperty Specifies the name of the event to listen for.
Public fieldStatic member SourceObjectProperty Identifies the SourceObject dependency property.

Top

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

Microsoft.Xaml.Interactions.Core Namespace