Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

Storyboard.GetCurrentState Method (FrameworkElement)

Gets the CurrentState of the Clock that was created for this Storyboard.

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

public ClockState GetCurrentState (
	FrameworkElement containingObject
)
public ClockState GetCurrentState (
	FrameworkElement containingObject
)
public function GetCurrentState (
	containingObject : FrameworkElement
) : ClockState
You cannot use methods in XAML.

Parameters

containingObject

The object specified when the Storyboard.Begin(FrameworkElement,Boolean) method was called. This object contains the Clock objects that were generated for this storyboard and its children.

Return Value

The current state of the clock created for this storyboard: Active, Filling, or Stopped.

This method does not tell you whether a storyboard is paused. To determine whether a storyboard is paused, use the GetIsPaused method.

To use this method to retrieve information about a storyboard's clock, the storyboard must be controllable. To make a storyboard controllable in code, you must use the appropriate overload of the storyboard's Begin method and specify true to make it controllable. See How to: Control a Storyboard After It Starts for an example.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.