Storyboard.SeekAlignedToLastTick Method

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

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

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"

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

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

Community Additions

Show: