Storyboard::SetTargetName Method (DependencyObject^, String^)

 

Makes the specified Timeline target the dependency object with the specified name.

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

public:
static void SetTargetName(
	DependencyObject^ element,
	String^ name
)

Parameters

element
Type: System.Windows::DependencyObject^

The Timeline that should target the specified dependency object.

name
Type: System::String^

The name of the dependency object to target.

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

.NET Framework
Available since 3.0
Return to top
Show: