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?
相关问题
- VNC control for WPF application
- WPF Binding from System.Windows.SystemParameters.P
- XAML: Applying styles to nested controls
- How can I add a horizontal line (“goal line”) for
- How to properly change a resource dictionary
A way to animate the background is:
It is also possible to set the TargetProperty to "(Background).(SolidColorBrush.Color)" as in this example:
I would prefer to animate the background of a border via storyboard. It's pretty easy and you can build a animation as complex as you like. Here is a short example:
You should also see the MSDN article Animation Overview.
You can use a Grid and put a video element in last z order, and let its width and height be auto and you can have a video played in it and put your container in front of it.
In Grid you can put objects in specified z order, you can create your custom animation control and let it run as first control added in grid.
Currently there is no Background property offering any animation, they can only load pictures.
Google "background animation". You'll get 18,500,000 hits.
I'd try and use vector animations if possible, playing a video (that has to automatically scale) is not optimal (in terms of processing, image scaling etc).
Using vector shapes/brushes (even 3D?) would be much better in my view.