Class Behavior<T>
A base class for behaviors making them code compatible with older frameworks, and allow for typed associated objects.
Implements
Inherited Members
Namespace: EmptyKeys.UserInterface.Interactivity
Assembly: EmptyKeys.UserInterface.dll
Syntax
public abstract class Behavior<T> : Behavior, IBehavior where T : DependencyObject
Type Parameters
Name | Description |
---|---|
T | The object type to attach to |
Properties
AssociatedObject
Gets the DependencyObject to which the IBehavior is attached.
Declaration
public T AssociatedObject { get; }
Property Value
Type | Description |
---|---|
T |
Methods
OnAttached()
Called when [attached].
Declaration
protected override void OnAttached()
Overrides
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException |