Поделиться через


Storyboard.SkipToFill Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

'Declaration
Public Sub SkipToFill
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.