BeginStoryboard.Name Property

 

Gets or sets the name of the BeginStoryboard object. By naming the BeginStoryboard object, the Storyboard can be controlled after it is started.

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

public string Name { get; set; }

Property Value

Type: System.String

The name of the BeginStoryboard. The default is null.

To be able to pause, resume, or otherwise interactively control a Storyboard, set the Name property of its BeginStoryboard and use a ControllableStoryboardAction object like PauseStoryboard, ResumeStoryboard, or StopStoryboard to reference this name. If the Name of BeginStoryboard is unspecified, the Storyboard cannot be interactively affected after it is begun; furthermore, when the Storyboard ends or enters its Fill period, the animation clocks are disposed of. See How to: Use Event Triggers to Control a Storyboard After It Starts for more information.

.NET Framework
Available since 3.0
Return to top
Show: