private void OnResumeButton(object sender, RoutedEventArgs e) { ToggleButton1.IsChecked = false; ToggleButton1.Content = "Annotate"; AnnotationsListBox.UnselectAll(); DisableAnnotations(); }
private void Slider_MouseUp(object sender, RoutedEventArgs e) { Slider slider = (Slider)sender; TimeSpan SliderTimeSpan = new TimeSpan(System.Convert.ToInt64(slider.Value)); Storyboard s = (Storyboard)this.FindResource("OnLoaded"); s.Seek(DocumentRoot, TimeSpan.FromSeconds(slider.Value), TimeSeekOrigin.BeginTime); s.Resume(DocumentRoot); AnnotationsListBox.UnselectAll(); DisableAnnotations(); _CurrentSecond = SliderTimeSpan.Seconds; }