Storyboard.SetTargetName Method (System.Windows.Media.Animation)

Switch View :
ScriptFree
.NET Framework Class Library for Silverlight
Storyboard.SetTargetName Method

Causes the specified Timeline to target the object with the specified name.

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

Visual Basic (Declaration)
Public Shared Sub SetTargetName ( _
	element As Timeline, _
	name As String _
)
C#
public static void SetTargetName(
	Timeline element,
	string name
)

Parameters

element
Type: System.Windows.Media.Animation.Timeline
The timeline that targets the specified dependency object.
name
Type: System.String
The name of the object to target.
Remarks

As with SetTarget, the user is still required to hook up the desired property using SetTargetProperty for the animation. This is the same model as XAML: specify a target as well as a target property.

This method supports the Storyboard.TargetName attached property.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference