Exporter (0) Imprimer
Développer tout

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)

public static void SetTargetName(
	Timeline element,
	string name


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

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.


Supported in: 5, 4, 3

Silverlight for Windows Phone

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

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

Ajouts de la communauté

© 2014 Microsoft