Επεξεργασία

Κοινή χρήση μέσω


Storyboard.SetTargetProperty(DependencyObject, PropertyPath) Method

Definition

Makes the specified Timeline target the specified dependency property.

public:
 static void SetTargetProperty(System::Windows::DependencyObject ^ element, System::Windows::PropertyPath ^ path);
public static void SetTargetProperty (System.Windows.DependencyObject element, System.Windows.PropertyPath path);
static member SetTargetProperty : System.Windows.DependencyObject * System.Windows.PropertyPath -> unit
Public Shared Sub SetTargetProperty (element As DependencyObject, path As PropertyPath)

Parameters

element
DependencyObject

The Timeline with which to associate the specified dependency property.

path
PropertyPath

A path that describe the dependency property to be animated.

Remarks

This method sets the TargetProperty attached property on the specified object. For more information about how storyboard targeting works, see TargetProperty. For more information about how attached properties work, see Attached Properties Overview.

Applies to

See also