Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Animated background control in WPF?

In my WPF application, I want to have an ambient animated background similar to Media Center's background. Is there a free control that offers this?

like image 433
RCIX Avatar asked Aug 29 '09 07:08

RCIX


1 Answers

A way to animate the background is:

It is also possible to set the TargetProperty to "(Background).(SolidColorBrush.Color)" as in this example:

<ColorAnimation
    Storyboard.TargetName = "lblSubGroup" 
    Storyboard.TargetProperty = "(Background).(SolidColorBrush.Color)"
    From = "White"
    To = "Navy"
    Duration = "0:0:3"
    AutoReverse = "True"/>
like image 66
Björn Avatar answered Sep 27 '22 22:09

Björn