Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-seek-a-storyboard-synchronously.md
T
Pooja PoojariandAndy De George 692293bda8 US 1889327: Updated H2 and column headers. (#1326)
* Updated H2 and column headers.

* Metadata update.

* Minor edits.

* Apply suggestions from code review

Co-authored-by: Andy (Steve) De George <[email protected]>
2022-03-07 21:22:00 +00:00

1.5 KiB

title, description, ms.date, ms.custom, dev_langs, helpviewer_keywords, ms.assetid
title description ms.date ms.custom dev_langs helpviewer_keywords ms.assetid
How to: Seek a Storyboard Synchronously Learn how to seek a Storyboard synchronously. 03/30/2017 devdivchpfy22
csharp
vb
seeking Storyboards synchronously [WPF]
Storyboards [WPF], seeking synchronously
03e06271-a946-4810-88ea-3fb4cfa9e0f1

How to: Seek a Storyboard Synchronously

The following example shows how to use the xref:System.Windows.Media.Animation.Storyboard.SeekAlignedToLastTick%2A method of a xref:System.Windows.Media.Animation.Storyboard to seek to any position in a storyboard animation synchronously.

XAML markup

The following is the XAML markup for the sample.

[!code-xamlSeekStoryboard_snip#SeekStoryboardSynchronouslyExampleWholePage]

Code

The following is the code used with the XAML code above.

[!code-csharpSeekStoryboard_snip#SeekStoryboardSynchronouslyCodeBehindExampleWholePage] [!code-vbSeekStoryboard_snip#SeekStoryboardSynchronouslyCodeBehindExampleWholePage]