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
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