void ShowCurrentImage() { if (SlideshowImages.Count == 0 || CurrentShowingImageIndex >= SlideshowImages.Count) { return; } var img = SlideshowImages[CurrentShowingImageIndex]; Next.Source = img; if (Next == Image1) { Image1.FadeIn(500); Image2.FadeOut(500); Next = Image2; } else { Image2.FadeIn(500); Image1.FadeOut(500); Next = Image1; } CurrentShowingImageIndex++; }