Class ChangePropertyAction
An action that will change a specified property to a specified value when invoked.
Implements
Inherited Members
Namespace: Microsoft.Expression.Interactivity.Core
Assembly: OpenSilver.Expression.Interactions.dll
Syntax
public class ChangePropertyAction : TargetedTriggerAction<object>, IAttachedObject
Constructors
| Improve this Doc View SourceChangePropertyAction()
Initializes a new instance of the ChangePropertyAction class.
Declaration
public ChangePropertyAction()
Fields
| Improve this Doc View SourceDurationProperty
Declaration
public static readonly DependencyProperty DurationProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IncrementProperty
Declaration
public static readonly DependencyProperty IncrementProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PropertyNameProperty
Declaration
public static readonly DependencyProperty PropertyNameProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ValueProperty
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceDuration
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 |
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 |
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. |
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 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, then the parameter may be set to a null reference. |
Overrides
Exceptions
Type | Condition |
---|---|
System.ArgumentException | A property with |
System.ArgumentException | Could not set |