Example #1
0
        public void AddAnimationChild(UIElement elem)
        {
            IAtimate anElm = elem as IAtimate;

            if (anElm != null)
            {
                ani.Add(anElm);
            }
            Children.Add(elem);
        }
Example #2
0
 public void RefreshAnimation()
 {
     for (int i = 0; i < Children.Count; i++)
     {
         IAtimate anmt = Children[i] as IAtimate;
         if (anmt != null)
         {
             anmt.UpdateAnimation();
         }
     }
 }
Example #3
0
 public List <IAtimate> GetAnimables()
 {
     ani.Clear();
     for (int i = 0; i < Children.Count; i++)
     {
         IAtimate anmt = Children[i] as IAtimate;
         if (anmt != null)
         {
             ani.Add(anmt);
         }
     }
     return(ani);
 }