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
ChangePropertyAction
Implements
IAction
Inherited Members
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.OnPropertyChanged(DependencyProperty)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
Namespace: EmptyKeys.UserInterface.Interactions.Core
Assembly: EmptyKeys.UserInterface.dll
Syntax
public sealed class ChangePropertyAction : DependencyObject, IAction

Fields

PropertyNameProperty

Identifies the PropertyName dependency property.

Declaration
public static readonly DependencyProperty PropertyNameProperty
Field Value
Type Description
DependencyProperty

TargetObjectProperty

Identifies the TargetObject dependency property.

Declaration
public static readonly DependencyProperty TargetObjectProperty
Field Value
Type Description
DependencyProperty

ValueProperty

Identifies the Value dependency property.

Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type Description
DependencyProperty

Properties

PropertyName

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

Declaration
public PropertyPath PropertyName { get; set; }
Property Value
Type Description
PropertyPath

TargetObject

Gets or sets the object whose property will be changed. If TargetObject is not set or cannot be resolved, the sender of Execute(Object, Object) will be used. This is a dependency property.

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

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

Methods

Execute(Object, Object)

Executes the action.

Declaration
public object Execute(object sender, object parameter)
Parameters
Type Name Description
System.Object sender

The System.Object that is passed to the action by the behavior. Generally this is AssociatedObject or a target object.

System.Object parameter

The value of this parameter is determined by the caller.

Returns
Type Description
System.Object

True if updating the property value succeeds; else false.

Implements

IAction
Back to top Generated by DocFX