Windows Dev Center

The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Storyboard.SetTargetProperty Method

Makes the specified Timeline target the specified dependency property.

Namespace:  System.Windows.Media.Animation
Assembly:  PresentationFramework (in PresentationFramework.dll)

public static void SetTargetProperty(
	DependencyObject element,
	PropertyPath path


Type: System.Windows.DependencyObject

The Timeline with which to associate the specified dependency property.

Type: System.Windows.PropertyPath

A path that describe the dependency property to be animated.

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft