Exemplo n.º 1
0
        public static void Play(params IAnimation[] animations)
        {
            var sb = new StoryBoard();

            sb.AddAnimations(animations);
            sb.AnimateSync();
        }
Exemplo n.º 2
0
        public static void BeginPlay(params IAnimation[] animations)
        {
            bool processed = false;

            if (sb != null)
            {
                lock (sb)
                {
                    if (sb != null)
                    {
                        sb.AddAnimations(animations);
                        processed = true;
                    }
                }
            }
            if (!processed)
            {
                sb = new StoryBoard();
                sb.AddAnimations(animations);
                sb.BeginAnimate(() => sb = null);
            }
        }
Exemplo n.º 3
0
        public static void BeginPlay(params IAnimation[] animations)
        {
            bool processed = false;

            if (sb != null)
            {
                lock (sb)
                {
                    if (sb != null)
                    {
                        sb.AddAnimations(animations);
                        processed = true;
                    }
                }
            }
            if (!processed)
            {
                sb = new StoryBoard();
                sb.AddAnimations(animations);
                sb.BeginAnimate(() => sb = null);
            }
        }
Exemplo n.º 4
0
 public static void Play(params IAnimation[] animations)
 {
     var sb = new StoryBoard();
     sb.AddAnimations(animations);
     sb.AnimateSync();
 }