Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Storyboard.Begin Method (FrameworkElement, FrameworkTemplate)

Applies the animations associated with this Storyboard to their targets within the specified template and initiates them.

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

public void Begin(
	FrameworkElement containingObject,
	FrameworkTemplate frameworkTemplate
)

Parameters

containingObject
Type: System.Windows.FrameworkElement

The object to which the specified frameworkTemplate has been applied. Animations without a TargetName are applied to containingObject.

frameworkTemplate
Type: System.Windows.FrameworkTemplate

The template to animate.

If the targeted properties are already animated, they are replaced using the SnapshotAndReplace handoff behavior.

When this method is called, Clock objects are created for the storyboard and any timelines it contains. These clocks are stored with containingObject.

Beginning a storyboard triggers the CurrentStateInvalidated and CurrentGlobalSpeedInvalidated events.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft