Class EventTrigger
A trigger that listens for a specified event on its source and fires when that event is fired.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Interactivity
Assembly: OpenSilver.Interactivity.dll
Syntax
public class EventTrigger : EventTriggerBase<object>, IAttachedObject
Constructors
| Improve this Doc View SourceEventTrigger()
Initializes a new instance of the EventTrigger class.
Declaration
public EventTrigger()
EventTrigger(String)
Initializes a new instance of the EventTrigger class.
Declaration
public EventTrigger(string eventName)
Parameters
Type | Name | Description |
---|---|---|
System.String | eventName | Name of the event. |
Fields
| Improve this Doc View SourceEventNameProperty
Declaration
public static readonly DependencyProperty EventNameProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceEventName
Gets or sets the name of the event to listen for. This is a dependency property.
Declaration
public string EventName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the event. |
Methods
| Improve this Doc View SourceGetEventName()
Declaration
protected override string GetEventName()
Returns
Type | Description |
---|---|
System.String |