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


Storyboard.SeekAlignedToLastTick Method

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

Moves the storyboard to the specified animation position immediately (synchronously).

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

Syntax

'Declaration
Public Sub SeekAlignedToLastTick ( _
    offset As TimeSpan _
)
public void SeekAlignedToLastTick(
    TimeSpan offset
)

Parameters

  • offset
    Type: System.TimeSpan
    A positive or negative time value that describes the amount by which the timeline should move forward or backward from the beginning of the animation. By using the TimeSpan Parse behavior, a TimeSpan can be specified as a string in the following format (in this syntax, the [] characters denote optional components of the string, but the quotes, colons, and periods are all a literal part of the syntax):
    "[days.]hours:minutes:seconds[.fractionalSeconds]"
    - or -
    "days"

Remarks

This method aligns the seek time of the Storyboard with the last clock tick. Values are immediately updated to reflect the changes due to SeekAlignedToLastTick, even though the screen does not reflect these changes until the screen is updated.

The behavior for this method is the same as Seek when calling after or before Begin is called.

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.