void hidea_AnimationComplete(object sender, LynxAnimationCompleteEventArgs e) { Panel p = CameraTestDesktop.getDesktopPanel(); if (p != null) { p.Children.Remove(ctp); } StackPanel tb = CameraTestDesktop.getTaskBar(); if (!tb.Children.Contains(this)) { tb.Children.Add(this); } }
public void ToIcon() { if (ctp == null) { return; } ActionAnimationShow a = new ActionAnimationShow(ctp); CameraTestDesktop cd = CameraTestDesktop.getDesktop(); StackPanel taskBar = CameraTestDesktop.getTaskBar(); FormPoint = new Point(Canvas.GetLeft(ctp), Canvas.GetTop(ctp)); Point ep = CameraTestDesktop.getPosition(this); a.AnimationComplete += new AnimationCompleteEventHandler(hidea_AnimationComplete); a.HideZoomProjection(500, FormPoint, ep); }