|Available on||.NET Framework 4.5, .NET Framework 4.6, Xamarin - iOS|
public abstract class BehaviorBase<T> : IBehavior, Behavior<T> where T : FrameworkElement
Base types Behavior
Implements interfaces IBehavior
Behavior base class that handles a safe unsubscribe and clean up because the default behavior class does not always call
OnDetaching. This class also adds some specific features such as ValidateRequiredProperties which is automatically called when the behavior is attached.
T The IView this behavior should attach to.
The IsEnabled property registration.
Gets the culture.
Gets a value indicating whether the is loaded.
Gets or sets a value indicating whether this behavior is enabled.
Gets a value indicating whether this instance is in design mode.
Initializes the behavior. This method is called instead of the OnAttached which is sealed to protect the additional behavior.
Called when the AssociatedObject is loaded.
Called when the AssociatedObject is unloaded.
Called after the behavior is attached to an AssociatedObject.
Called when the behavior 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 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!