Class Interaction
Defines a BehaviorCollection attached property and provides a method for executing an ActionCollection.
Inheritance
Inherited Members
Namespace: EmptyKeys.UserInterface.Interactivity
Assembly: EmptyKeys.UserInterface.dll
Syntax
public sealed class Interaction
Fields
BehaviorsProperty
Gets or sets the BehaviorCollection associated with a specified object.
Declaration
public static readonly DependencyProperty BehaviorsProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Methods
ExecuteActions(Object, ActionCollection, Object)
Executes all actions in the ActionCollection and returns their results.
Declaration
public static IEnumerable<object> ExecuteActions(object sender, ActionCollection actions, object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The System.Object which will be passed on to the action. |
ActionCollection | actions | The set of actions to execute. |
System.Object | parameter | The value of this parameter is determined by the calling behavior. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Object> | Returns the results of the actions. |
GetBehaviors(DependencyObject)
Gets the BehaviorCollection associated with a specified object.
Declaration
public static BehaviorCollection GetBehaviors(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | obj | The DependencyObject from which to retrieve the BehaviorCollection. |
Returns
Type | Description |
---|---|
BehaviorCollection | A BehaviorCollection containing the behaviors associated with the specified object. |
SetBehaviors(DependencyObject, BehaviorCollection)
Sets the BehaviorCollection associated with a specified object.
Declaration
public static void SetBehaviors(DependencyObject obj, BehaviorCollection value)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | obj | The DependencyObject on which to set the BehaviorCollection. |
BehaviorCollection | value | The BehaviorCollection associated with the object. |