<Pagexmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"x:Class="SDKSample.SeekStoryboardSynchronouslyExample"><StackPanelMargin="20"><RectangleName="myRectangle"Width="10"Height="20"Fill="#AA3333FF"HorizontalAlignment="Left"><Rectangle.Triggers><EventTriggerRoutedEvent="Rectangle.Loaded"><BeginStoryboardName="myBeginStoryboard"><StoryboardName="myStoryboard"Duration="0:0:4"><DoubleAnimationStoryboard.TargetName="myRectangle"Storyboard.TargetProperty="Width"Duration="0:0:4"From="10"To="500"/></Storyboard></BeginStoryboard></EventTrigger></Rectangle.Triggers></Rectangle><!-- Use this slider to seek to different points of the Storyboard Duration
(in milliseconds). --><SliderName="SeekSlider"ValueChanged="OnSliderValueChanged"Height="Auto"Width="500"Minimum="0"Maximum="4000"HorizontalAlignment="Left"/><!-- TextBlock displays the current time position of the Storyboard in milliseconds. --><TextBlockName="PositionTextBlock"/></StackPanel></Page>