共用方式為


ChangePropertyAction Class

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

Inheritance Hierarchy

System.Object
  DependencyObject
    Microsoft.Xaml.Interactions.Core.ChangePropertyAction

Namespace:  Microsoft.Xaml.Interactions.Core
Assembly:  Microsoft.Xaml.Interactions (in Microsoft.Xaml.Interactions.dll)

Syntax

'Declaration
Public NotInheritable Class ChangePropertyAction _
    Inherits DependencyObject _
    Implements IAction
public sealed class ChangePropertyAction : DependencyObject, 
    IAction
public ref class ChangePropertyAction sealed : public DependencyObject, 
    IAction
[<Sealed>]
type ChangePropertyAction =  
    class 
        inherit DependencyObject 
        interface IAction 
    end
public final class ChangePropertyAction extends DependencyObject implements IAction

The ChangePropertyAction type exposes the following members.

Constructors

  Name Description
Public method ChangePropertyAction Initializes a new instance of the ChangePropertyAction reference.

Top

Properties

  Name Description
Public property Dispatcher (Inherited from DependencyObject.)
Public property PropertyName Gets or sets the name of the property to change. This is a dependency property.
Public property TargetObject Gets or sets the object whose property will be changed. If TargetObject is not set or cannot be resolved, the sender of Execute will be used. This is a dependency property.
Public property Value Gets or sets the value to set. This is a dependency property.

Top

Methods

  Name Description
Public method ClearValue (Inherited from DependencyObject.)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method Execute Executes the action.
Public method GetAnimationBaseValue (Inherited from DependencyObject.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValue (Inherited from DependencyObject.)
Public method ReadLocalValue (Inherited from DependencyObject.)
Public method SetValue (Inherited from DependencyObject.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member PropertyNameProperty Specifies the name of the property to change.
Public fieldStatic member TargetObjectProperty Identifies the TargetObject dependency property.
Public fieldStatic member ValueProperty Specifies the value to set.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Xaml.Interactions.Core Namespace