Show / Hide Table of Contents

Class Behavior

A base class for behaviors, implementing the basic plumbing of IBehavior

Inheritance
System.Object
DependencyObject
Behavior
Behavior<T>
Implements
IBehavior
Inherited Members
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.OnPropertyChanged(DependencyProperty)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
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()

Implements

IBehavior
Back to top Generated by DocFX