Szerkesztés

Megosztás a következőn keresztül:


Storyboard.TargetName Attached Property

Definition

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

see GetTargetName, and SetTargetName
see GetTargetName, and SetTargetName
see GetTargetName, and SetTargetName

Remarks

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.

Making an Object Targetable

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.

Dependency Property Information

Identifier field TargetNameProperty
Metadata properties set to true None

Applies to