Quantcast
Viewing all articles
Browse latest Browse all 20

Enabling and Disabling animations easily;

I am trying to implement a way where I can easily enable and disable
animations via application configuration. I came up with the following
solution...

public class AnimationControl
{
.....#region const
.........public static bool enableAnimation = false;
.....#endregion

.....public static void Begin( UIElement target, DependencyProperty property,
AnimationTimeline timeline )
.....{
.........if ( enableAnimation )
.............target.BeginAnimation( property, timeline );
.........else...

Read more

Viewing all articles
Browse latest Browse all 20

Trending Articles