0

I have a list of images in my control

public List<BitmapImage> Images { get; set; }

I am using a timer to change the images.

        Image imgpanel = new System.Windows.Controls.Image();
        imgpanel.Source = image;
        imgpanel.Stretch = maintainAspectRatio ? Stretch.Uniform : Stretch.Fill;
        imgpanel.StretchDirection = StretchDirection.Both;

Does anyone know a way i can crossfade the images so they look better when swapping them ?

Welsh King
  • 3,178
  • 11
  • 38
  • 60

1 Answers1

1

You could have two overlapping Image controls in the layout and use storyboards to fade them in/out. Then you could just load the image into the hidden Image control and when it's done, fade it in and the other one out. This goes on and on...

Thorsten Dittmar
  • 55,956
  • 8
  • 91
  • 139
  • i will investigate thanks :) http://wpf-samples.blogspot.co.uk/2007/01/programmatic-fade-in-out-sample.html – Welsh King Apr 30 '12 at 10:26