Show / Hide Table of Contents

Class ChangePropertyAction

An action that will change a specified property to a specified value when invoked.

Inheritance
System.Object
DependencyObject
TriggerAction
TargetedTriggerAction
TargetedTriggerAction<System.Object>
ChangePropertyAction
SetDataStoreValueAction
Implements
IAttachedObject
Inherited Members
TargetedTriggerAction<Object>.Target
TargetedTriggerAction<Object>.OnTargetChanged(Object, Object)
TargetedTriggerAction.TargetObjectProperty
TargetedTriggerAction.TargetNameProperty
TargetedTriggerAction.TargetObject
TargetedTriggerAction.TargetName
TargetedTriggerAction.AssociatedObjectTypeConstraint
TargetedTriggerAction.TargetTypeConstraint
TargetedTriggerAction.OnAttached()
TargetedTriggerAction.OnDetaching()
TriggerAction.IsEnabledProperty
TriggerAction.IsEnabled
TriggerAction.AssociatedObject
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 ChangePropertyAction : TargetedTriggerAction<object>, IDependencyObject, IAttachedObject

Constructors

| Improve this Doc View Source

ChangePropertyAction()

Initializes a new instance of the ChangePropertyAction class.

Declaration
public ChangePropertyAction()

Fields

| Improve this Doc View Source

DurationProperty

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

IncrementProperty

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

PropertyNameProperty

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

ValueProperty

Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Duration

Gets or sets the duration of the animation that will occur when the ChangePropertyAction is invoked. This is a dependency property. If the duration is unset, no animation will be applied.

Declaration
public Duration Duration { get; set; }
Property Value
Type Description
Duration
| Improve this Doc View Source

Increment

Increment by Value if true; otherwise, set the value directly. If the property cannot be incremented, it will instead try to set the value directly.

Declaration
public bool Increment { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

PropertyName

Gets or sets the name of the property to change. This is a dependency property.

Declaration
public string PropertyName { get; set; }
Property Value
Type Description
System.String

The name of the property to change.

| Improve this Doc View Source

Value

Gets or sets the value to set. This is a dependency property.

Declaration
public object Value { get; set; }
Property Value
Type Description
System.Object

The value to set.

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, then the parameter may be set to a null reference.

Overrides
TriggerAction.Invoke(Object)
Exceptions
Type Condition
System.ArgumentException

A property with could not be found on the Target.

System.ArgumentException

Could not set to the value specified by .

Implements

IAttachedObject

Extension Methods

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