Class Trigger<T>
Represents a trigger that can be attached to view element and perform actions conditionally.
Inheritance
System.Object
Trigger<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: DevZest.Data.Presenters.Primitives
Assembly: DevZest.Data.WPF.dll
Syntax
public abstract class Trigger<T>
where T : UIElement, new()
Type Parameters
Name | Description |
---|---|
T | The type of view element. |
Constructors
Name | Description |
---|---|
Trigger() | Initializes a new instance of Trigger<T> class. |
Properties
Name | Description |
---|---|
Action | Gets or sets the action to be executed. |
Methods
Name | Description |
---|---|
Attach(T) | Attaches this trigger to view element. |
Detach(T) | Detaches this trigger from view element. |
Execute(T) | Executes the action. |
WithAction(Action<T>) | Sets the action. |