|Available on||.NET Framework 4.5, .NET Framework 4.6|
public abstract class EventTriggerBase<T, T> : ITrigger, EventTriggerBase<T> where T : FrameworkElement
Base types EventTriggerBase
Implements interfaces ITrigger
Trigger base class that handles a safe unsubscribe and clean up because the default Trigger class does not always call OnDetaching. This class also adds some specific features such as ValidateRequiredProperties which is automatically called when the trigger is attached.
T The this trigger should attach to.
The IsEnabled property registration.
Gets the object to which the trigger is attached.
Gets a value indicating whether the
AssociatedObject is loaded.
Gets or sets a value indicating whether this trigger is enabled.
Gets a value indicating whether this instance is in design mode.
Specifies the name of the Event this EventTriggerBase is listening for.
Initializes the trigger action. This method is called instead of the OnAttached which is sealed to protect the additional trigger action.
Called when the AssociatedObject is loaded.
Called when the AssociatedObject is unloaded.
Called after the action is attached to an AssociatedObject.
Called when the action is being detached from its AssociatedObject, but before it has actually occurred.
Called when the IsEnabled property has changed.
Uninitializes the behavior. This method is called when OnDetaching is called, or when the associated object is unloaded. If dependency properties are used, it is very important to use to clear the value of the dependency properties in this method.
Validates the required properties. This method is called when the object is attached, but before the Initialize is invoked.
Have a question about Catel? Use StackOverflow with the Catel tag!