A colleague of mine was looking for a WPF pre-loader, so I created this one.
It is stand-alone in single XAML file, and doesn’t require any C# code, so it should be easy to re-use (although it could be made much less verbose with a little C#). It works by animating the background color, and opacity of 12 border elements that have been placed in a circle using a rotate transform. The appearance of the border, background color, duration of the animation, and the ‘spread’ of the elements have all been parameterized for easy tweaking. One thing that is not parameterized (because it varies for each element) is the rotate transform, and the time animation time delay for each of the 12 elements. These need to be edited for each element. The source-code is here, and has been included in my learnwpf.com samples project on bitbucket.
Comments
Dew Drop – November 1, 2011 | Alvin Ashcraft's Morning Dew
The Windows Client Developer Roundup aggregates information of interest to Windows Client Developers