
Originally Posted by
Nightwalker83
That's one reason why I think chris 128 should post his code, etc in this thread Also, it would make the thread appear useful rather than talking about mistake someone wrote in an article.
Well the way I would do it is exactly how he did it in the article that he posted after I pointed out the mistake
(which I already linked to in my original post but here it is again: http://visualbasic.about.com/od/lear.../wpfintro7.htm )
Here's my slightly slimmed down version anyway:
Code:
Dim myDoubleAnimation As New DoubleAnimation
myDoubleAnimation.To = 0.0
myDoubleAnimation.Duration = New Duration(TimeSpan.FromSeconds(5))
Label1.BeginAnimation(Label.OpacityProperty, myDoubleAnimation)
Note that my example just decreases the label's opacity to 0 over 5 seconds, where as in the other developer's article he uses the AutoReverse and RepeatBehavior properties to make it loop and keep fading the label in and out of visibility