Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-seek-a-clock-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.3 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Seek a Clock Synchronously 03/30/2017
csharp
vb
clocks [WPF], seeking synchronously
seeking clocks synchronously [WPF]
e5b7529b-b7d0-40d2-9e1d-fa4b5e736e96

How to: Seek a Clock Synchronously

Use the xref:System.Windows.Media.Animation.ClockController.SeekAlignedToLastTick%2A method to seek a clock to a specific point synchronously. The following example demonstrates both the xref:System.Windows.Media.Animation.ClockController.Seek%2A and xref:System.Windows.Media.Animation.ClockController.SeekAlignedToLastTick%2A methods of a xref:System.Windows.Media.Animation.ClockController.

This example shows how to seek a xref:System.Windows.Media.Animation.Clock; for an example showing how to seek a storyboard, see Seek a Storyboard Synchronously .

Example

[!code-csharpClockController_procedural_snip#ClockControllerSeekExample] [!code-vbClockController_procedural_snip#ClockControllerSeekExample]