Storyboard sb = new Storyboard(); DoubleAnimation oa = new DoubleAnimation(); oa.Duration = new Duration(TimeSpan.FromSeconds(0.5)); oa.From = 1; oa.To = 0.2; Storyboard.SetTarget(oa, img); Storyboard.SetTargetProperty(oa, new PropertyPath(Image.OpacityProperty)); oa.AutoReverse = true; oa.RepeatBehavior = RepeatBehavior.Forever; sb.Children.Add(oa); sb.Begin();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)