Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight 3
Storyboard Class
 TargetName Attached Property
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Silverlight 3

Other versions are also available for the following:
.NET Framework Class Library for Silverlight
Storyboard..::.TargetName Attached Property

Gets or sets the name of the object to animate.

Namespace:  System.Windows.Media.Animation
Assembly:  System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
See GetTargetName, SetTargetName
Visual Basic (Usage)
See GetTargetName, SetTargetName
C#
See GetTargetName, SetTargetName
XAML Attribute Usage
<object Storyboard.TargetName="nameString"/>

XAML Values

nameString

The Name (or x:Name) value of the element where the property to be animated exists.

Property Value

Type: System..::.String
The name of the object to animate.

Dependency property identifier field: TargetNameProperty

The value of Storyboard..::.TargetName must refer to an existing element that has that same string assigned as its Name or x:Name attribute. For details, see the "Creating a Storyboard" section of Animation Overview.

Attempting to set Storyboard..::.TargetName on a running animation will cause a run-time error. However, you can retarget an existing animation is stopped or not yet running. If you do so, be careful not to retarget an animation to the wrong type of target (one that does not possess the existing Storyboard..::.TargetProperty). Otherwise, you will get a run-time error.

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker