Storyboard.SkipToFill Method (System.Windows.Media.Animation)

Switch View :
ScriptFree
.NET Framework Class Library for Silverlight
Storyboard.SkipToFill Method

Advances the current time of the storyboard's clock to the end of its active period.

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

Visual Basic (Declaration)
Public Sub SkipToFill
C#
public void SkipToFill()
Remarks

If AutoReverse is set to true, the end of the active period is the starting frame of the Storyboard.

If RepeatBehavior is set to anything other than Forever, SkipToFill works as expected. If RepeatBehavior is set to Forever, then Silverlight throws an InvalidOperation exception, similar to WPF, because a filling state will never be reached.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference