Class Interaction
Static class that owns the Triggers and Behaviors attached properties. Handles propagation of AssociatedObject change notifications.
Inheritance
System.Object
Interaction
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Interactivity
Assembly: OpenSilver.Interactivity.dll
Syntax
public static class Interaction
Fields
| Improve this Doc View SourceBehaviorsProperty
This property is used as the internal backing store for the public Behaviors attached property.
Declaration
public static readonly DependencyProperty BehaviorsProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TriggersProperty
This property is used as the internal backing store for the public Triggers attached property.
Declaration
public static readonly DependencyProperty TriggersProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Methods
| Improve this Doc View SourceGetBehaviors(DependencyObject)
Gets the BehaviorCollection associated with a specified object.
Declaration
public static BehaviorCollection GetBehaviors(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | obj | The object from which to retrieve the BehaviorCollection. |
Returns
Type | Description |
---|---|
BehaviorCollection | A BehaviorCollection containing the behaviors associated with the specified object. |
GetTriggers(DependencyObject)
Gets the TriggerCollection containing the triggers associated with the specified object.
Declaration
public static TriggerCollection GetTriggers(DependencyObject obj)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | obj | The object from which to retrieve the triggers. |
Returns
Type | Description |
---|---|
TriggerCollection | A TriggerCollection containing the triggers associated with the specified object. |