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)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

'Declaration
Public Property Name As String
<object Name="string" .../>

Property Value

Type: System.String
The name of the BeginStoryboard. The default is Nothing.

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft