Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-seek-a-storyboard-synchronously.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.4 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Seek a Storyboard Synchronously 03/30/2017
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.

Example

The following is the XAML markup for the sample.

[!code-xamlSeekStoryboard_snip#SeekStoryboardSynchronouslyExampleWholePage]

Example

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

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