Storyboard::Begin Method (FrameworkElement^, HandoffBehavior)

 

Applies the animations associated with this Storyboard to their targets and initiates them, using the specified HandoffBehavior.

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

public:
void Begin(
	FrameworkElement^ containingObject,
	HandoffBehavior handoffBehavior
)

Parameters

containingObject
Type: System.Windows::FrameworkElement^

An object contained within the same name scope as the targets of this storyboard's animations. Animations without a specified TargetName are applied to containingObject.

handoffBehavior
Type: System.Windows.Media.Animation::HandoffBehavior

The behavior the new animation should use to interact with any current animations.

The following example uses the SnapshotAndReplace HandoffBehavior to animate when the user left-clicks, and the Compose HandoffBehavior when the user right-clicks.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: