Storyboard.TargetName Attached Property


Gets or sets the name of the object to animate. The object must be a FrameworkElement, FrameworkContentElement, or Freezable.

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

See GetTargetName, SetTargetName

Property Value

Type: System.String

The name of the FrameworkElement, FrameworkContentElement, or Freezable to animate.

Setting this property is optional. If the TargetName is not specified, a storyboard's animations are applied to one of the following:

When this property is set on a timeline with children, those child timelines "inherit" the parent's TargetName unless they specify their own.

When using XAML, you perform one of the following two actions to make an object targetable by a storyboard:

When using code, you make an object targetable by using the RegisterName method to assign the object a name.

Identifier field


Metadata properties set to true


Return to top