public void ToForm() { LayoutRoot.Opacity = 1; Panel p = CameraTestDesktop.getDesktopPanel(); if (!p.Children.Contains(ctp)) { p.Children.Add(ctp); } Point sp = CameraTestDesktop.getPosition(this); ActionAnimationShow a = new ActionAnimationShow(ctp); a.AnimationComplete += new AnimationCompleteEventHandler(a_AnimationComplete); a.ShowZoomProjection(500, sp, FormPoint); }
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); }