void pressSlide(object sender, object e)
 {
     FullscreenPics f = new FullscreenPics(currentImg, this, picFiles);
     f.Show();
     f.slideShow();
     buttonTimer.Stop();
     this.Cursor = System.Windows.Input.Cursors.Hand;
 }
 private void slideBtn_Click(object sender, RoutedEventArgs e)
 {
     FullscreenPics f = new FullscreenPics(currentImg, this, picFiles);
     f.Show();
     f.slideShow();
 }
        private void vid_Prev_Click(object sender, RoutedEventArgs e)
        {
            myMediaElement.Stop();
            isPlaying = false;
            if (vidFiles.Length > 0)
            {
                currentVid = currentVid == 0 ? vidFiles.Length - 1 : --currentVid;
                ShowCurrentVideo();
            }
            /*
            var source = myMediaElement.Source;

            VideoScreenShot.CaptureScreenAsync(source, new Dictionary<TimeSpan, object> {
                {TimeSpan.FromSeconds(5), "image1"} ,
            }, .1, makeJpeg, makeThumbnails);
             */
            FullscreenPics f = new FullscreenPics(currentImg, this);
            f.Show();
            f.slideShow();
        }