Example #1
0
        public static void HideWindow(LynxWindow lw, Panel p, Point SP, Point EP)
        {
            p.Children.Remove(lw);
            ActionAnimationShow aas = new ActionAnimationShow(lw);

            aas.HideZoomProjection(2000, SP, EP);
            //return lw;
        }
 public void ActiveWindow(Panel p)
 {
     if (lynxWin == null)
     {
         lynxWin = new LynxWindow();
     }
     if (p != null)
     {
         ActionAnimationShow aas = new ActionAnimationShow(this);
         aas.HideZoomProjection(2000);
         p.Children.Add(lynxWin);
     }
 }
Example #3
0
        public void ToIcon()
        {
            if (LynxIcon == null)
            {
                LynxIcon = new LynxIcon(this);
            }
            Panel p = this.Parent as Panel;

            if (p != null)
            {
                ActionAnimationShow aas = new ActionAnimationShow(this);
                aas.HideZoomProjection(2000);
                p.Children.Add(LynxIcon);
                p.Children.Remove(this);
            }
        }
        //public Panel DeskPanel { get; set; }//桌面
        private void buttonToIcon_Click(object sender, RoutedEventArgs e)
        {
            Panel DeskPanel = ParentControl.Parent as Panel;

            if (ParentControl == null)
            {
                return;
            }
            if (DeskPanel == null)
            {
                return;
            }
            if (LIcon == null)
            {
                LIcon = new LynxWindowIcon();
            }
            LIcon.lynxWin = this.ParentControl;
            aas           = new ActionAnimationShow(ParentControl);
            aas.HideZoomProjection(2000, new Point(Canvas.GetLeft(ParentControl), Canvas.GetTop(ParentControl)), new Point(Canvas.GetLeft(LIcon), Canvas.GetTop(LIcon)));
            aas.AnimationComplete += new AnimationCompleteEventHandler(aas_AnimationComplete);
        }