Class CallMethodAction
Calls a method on a specified object when invoked.
Inheritance
System.Object
CallMethodAction
Implements
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: Microsoft.Expression.Interactivity.Core
Assembly: OpenSilver.Expression.Interactions.dll
Syntax
public class CallMethodAction : TriggerAction<DependencyObject>, IAttachedObject
Constructors
| Improve this Doc View SourceCallMethodAction()
Declaration
public CallMethodAction()
Fields
| Improve this Doc View SourceMethodNameProperty
Declaration
public static readonly DependencyProperty MethodNameProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TargetObjectProperty
Declaration
public static readonly DependencyProperty TargetObjectProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceMethodName
The name of the method to invoke. This is a dependency property.
Declaration
public string MethodName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TargetObject
The object that exposes the method of interest. This is a dependency property.
Declaration
public object TargetObject { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
| Improve this Doc View SourceInvoke(Object)
Invokes the action.
Declaration
protected override void Invoke(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The parameter of the action. If the action does not require a parameter, the parameter may be set to a null reference. |
Overrides
| Improve this Doc View SourceOnAttached()
Called after the action is attached to an AssociatedObject.
Declaration
protected override void OnAttached()
Overrides
Remarks
Override this to hook up functionality to the AssociatedObject.
OnDetaching()
Called when the action is getting detached from its AssociatedObject, but before it has actually occurred.
Declaration
protected override void OnDetaching()
Overrides
Remarks
Override this to unhook functionality from the AssociatedObject.