--- title: "How to: Seek a Storyboard" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "Storyboards [WPF], seeking" - "seeking Storyboards [WPF]" ms.assetid: 887bb39a-0c2a-4ae8-956d-1d9f6f8ebbfc --- # How to: Seek a Storyboard The following example shows how to use the method of a to jump to any position in a storyboard animation. ## Example Below is the XAML markup for the sample. [!code-xaml[SeekStoryboard_snip#SeekStoryboardExampleWholePage](~/samples/snippets/csharp/VS_Snippets_Wpf/SeekStoryboard_snip/CSharp/SeekStoryboardExample.xaml#seekstoryboardexamplewholepage)] ## Example Below is the code used with the XAML code above. [!code-csharp[SeekStoryboard_snip#SeekStoryboardCodeBehindExampleWholePage](~/samples/snippets/csharp/VS_Snippets_Wpf/SeekStoryboard_snip/CSharp/SeekStoryboardExample.xaml.cs#seekstoryboardcodebehindexamplewholepage)] [!code-vb[SeekStoryboard_snip#SeekStoryboardCodeBehindExampleWholePage](~/samples/snippets/visualbasic/VS_Snippets_Wpf/SeekStoryboard_snip/VisualBasic/SeekStoryboardExample.xaml.vb#seekstoryboardcodebehindexamplewholepage)] ## See also - [Seek a Storyboard Synchronously](how-to-seek-a-storyboard-synchronously.md)