Create an Image Slideshow in WPF

You may also like...

5 Responses

  1. Wilhelmina says:

    Having read this I believed it was very informative.

    I appreciate you spending some time and energy to put this information together.
    I once again find myself spending a significant amount of time both reading
    and leaving comments. But so what, it was still worthwhile!

  2. Kerri says:

    These are in fact great ideas in regarding blogging. You have touched some pleasant things here. Any way keep up wrinting.

  3. Sherlyn says:

    Admiring the commitment you put into your website and in depth information you provide.
    It’s awesome to come across a blog every once
    in a while that isn’t the same outdated rehashed material.
    Great read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

  4. Dorcas says:

    If you are going for finest contents like me, only visit this web page all the time for the reason that it
    provides quality contents, thanks

  5. Greg says:

    This is really nice. It provided me with a good starting point. A couple pointers, though:

    – Delete the “FadeOut” animation. It can cause issues in the middle of the animation when both images are around 0.5 opacity. I assume you tried to mitigate this somewhat by having your animations run on different timing, but that causes another problem: the timing alternates. To see this, increase one of the animation times to a couple seconds. You’ll see that one fade is quick and one is slow, and they alternate.
    – Play with the Panel.ZIndex property. Since you only have a “FadeIn” animation, you’ll want to bring that image to the foreground so that you can see it. To do this, push the visible image control to the back and bring the new image control to the front. Here’s a replacement for some of the code in _PlaySlideShow()

    var imgFadeOut = _imageControls[oldCtrlIndex];
    Panel.SetZIndex(imgFadeOut, 0);
    var imgFadeIn = _imageControls[_currentCtrlIndex];
    Panel.SetZIndex(imgFadeIn, 1);
    imgFadeIn.Opacity = 0;
    var newSource = _images[_currentSourceIndex];
    imgFadeIn.Source = newSource;

    This will give a nice consistent fade for every transition.

Leave a Reply

Your email address will not be published. Required fields are marked *

eight − = 2

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">