Class CallMethodAction
Calls a method on a specified object when invoked.
public class CallMethodAction : TriggerAction<DependencyObject>, IAnimatable, IAttachedObject
- Inheritance
-
CallMethodAction
- Implements
- Inherited Members
- Extension Methods
Constructors
CallMethodAction()
public CallMethodAction()
Fields
MethodNameProperty
public static readonly DependencyProperty MethodNameProperty
Field Value
TargetObjectProperty
public static readonly DependencyProperty TargetObjectProperty
Field Value
Properties
MethodName
The name of the method to invoke. This is a dependency property.
public string MethodName { get; set; }
Property Value
TargetObject
The object that exposes the method of interest. This is a dependency property.
public object TargetObject { get; set; }
Property Value
Methods
Invoke(object)
Invokes the action.
protected override void Invoke(object parameter)
Parameters
parameter
objectThe parameter of the action. If the action does not require a parameter, the parameter may be set to a null reference.
OnAttached()
Called after the action is attached to an AssociatedObject.
protected override void OnAttached()
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.
protected override void OnDetaching()
Remarks
Override this to unhook functionality from the AssociatedObject.