Class Behavior
A base class for behaviors, implementing the basic plumbing of IBehavior
Implements
Inherited Members
Namespace: EmptyKeys.UserInterface.Interactivity
Assembly: EmptyKeys.UserInterface.dll
Syntax
public abstract class Behavior : DependencyObject, IBehavior
Properties
AssociatedObject
Gets the DependencyObject to which the IBehavior is attached.
Declaration
public DependencyObject AssociatedObject { get; }
Property Value
Type | Description |
---|---|
DependencyObject |
Methods
Attach(DependencyObject)
Attaches to the specified object.
Declaration
public void Attach(DependencyObject associatedObject)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | associatedObject | The DependencyObject to which the IBehavior will be attached. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | associatedObject |
Detach()
Detaches this instance from its associated object.
Declaration
public void Detach()
OnAttached()
Called when [attached].
Declaration
protected virtual void OnAttached()
OnDetaching()
Called when [detaching].
Declaration
protected virtual void OnDetaching()