Windows apps
Collapse the table of content
Expand the table of content
Information
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 (DependencyObject, PropertyPath)

 

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
)

Parameters

element
Type: System.Windows.DependencyObject

The Timeline with which to associate the specified dependency property.

path
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
Available since 3.0
Return to top
Show:
© 2017 Microsoft