public void AddAnimationChild(UIElement elem) { IAtimate anElm = elem as IAtimate; if (anElm != null) { ani.Add(anElm); } Children.Add(elem); }
public void RefreshAnimation() { for (int i = 0; i < Children.Count; i++) { IAtimate anmt = Children[i] as IAtimate; if (anmt != null) { anmt.UpdateAnimation(); } } }
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); }