Share via


DefaultEventAttribute Class

Provides design tools information about which EventName to set for EventTriggerBehavior when instantiating an IAction.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.Xaml.Interactivity.DefaultEventAttribute

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

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)> _
Public NotInheritable Class DefaultEventAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class DefaultEventAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true)]
public ref class DefaultEventAttribute sealed : public Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)>]
type DefaultEventAttribute =  
    class 
        inherit Attribute 
    end
public final class DefaultEventAttribute extends Attribute

The DefaultEventAttribute type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property EventName Gets the event name to pass to the EventTriggerBehavior constructor.
Public property TargetType Gets the type that the DefaultEventAttribute applies to.

Top

Methods

  Name Description
Public method Equals Infrastructure. Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from Attribute.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

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.Interactivity Namespace