Storyboard.SetTargetName Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Causes the specified Timeline to target the object with the specified name.
Assembly: System.Windows (in System.Windows.dll)
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.
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.
Show: