C# Class Windows.UI.Interactivity.Behavior

Encapsulates state information and zero or more ICommands into an attachable object.
This is an infrastructure class. Behavior authors should derive from Behavior<T> instead of from this class.
Inheritance: InteractivityBase
Mostrar archivo Open project: jlaanstra/Windows.UI.Interactivity

Public Methods

Method Description
Attach ( FrameworkElement frameworkElement ) : void

Attaches to the specified object.

Detach ( ) : void

Detaches this instance from its associated object.

Private Methods

Method Description
Behavior ( Type associatedObjectTypeConstraint ) : System

Method Details

Attach() public method

Attaches to the specified object.
The Behavior is already hosted on a different element. dependencyObject does not satisfy the Behavior type constraint.
public Attach ( FrameworkElement frameworkElement ) : void
frameworkElement Windows.UI.Xaml.FrameworkElement The object to attach to.
return void

Detach() public method

Detaches this instance from its associated object.
public Detach ( ) : void
return void