Table of Contents

Class CallMethodAction

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll

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

DependencyProperty

TargetObjectProperty

public static readonly DependencyProperty TargetObjectProperty

Field Value

DependencyProperty

Properties

MethodName

The name of the method to invoke. This is a dependency property.

public string MethodName { get; set; }

Property Value

string

TargetObject

The object that exposes the method of interest. This is a dependency property.

public object TargetObject { get; set; }

Property Value

object

Methods

Invoke(object)

Invokes the action.

protected override void Invoke(object parameter)

Parameters

parameter object

The 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.