Show / Hide Table of Contents

Class CallMethodAction

Calls a method on a specified object when invoked.

Inheritance
System.Object
DependencyObject
TriggerAction
TriggerAction<DependencyObject>
CallMethodAction
Implements
IAttachedObject
Inherited Members
TriggerAction<DependencyObject>.AssociatedObject
TriggerAction<DependencyObject>.AssociatedObjectTypeConstraint
TriggerAction.IsEnabledProperty
TriggerAction.IsEnabled
TriggerAction.IAttachedObject.AssociatedObject
TriggerAction.Attach(DependencyObject)
TriggerAction.Detach()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
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>, IDependencyObject, IAttachedObject

Constructors

| Improve this Doc View Source

CallMethodAction()

Declaration
public CallMethodAction()

Fields

| Improve this Doc View Source

MethodNameProperty

Declaration
public static readonly DependencyProperty MethodNameProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

TargetObjectProperty

Declaration
public static readonly DependencyProperty TargetObjectProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

MethodName

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

Declaration
public string MethodName { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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 Source

Invoke(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
TriggerAction.Invoke(Object)
| Improve this Doc View Source

OnAttached()

Called after the action is attached to an AssociatedObject.

Declaration
protected override void OnAttached()
Overrides
TriggerAction.OnAttached()
Remarks

Override this to hook up functionality to the AssociatedObject.

| Improve this Doc View Source

OnDetaching()

Called when the action is getting detached from its AssociatedObject, but before it has actually occurred.

Declaration
protected override void OnDetaching()
Overrides
TriggerAction.OnDetaching()
Remarks

Override this to unhook functionality from the AssociatedObject.

Implements

IAttachedObject

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
  • Improve this Doc
  • View Source