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 static void ShowWindow(FrameworkElement fe, Panel p, Point SP) { LynxWindow lw = new LynxWindow(); //lw.setContent(fe); p.Children.Add(lw); Point ep = new Point((p.ActualWidth - lw.Width) / 2, (p.ActualHeight - lw.Height) / 2); ActionAnimationShow aas = new ActionAnimationShow(lw); aas.ShowZoom(2000, SP, ep); }
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); } }
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 static void ShowWindow(FrameworkElement fe, Panel p, Point SP, Point EP) { LynxWindow lw = new LynxWindow(); lw.ParentPanel = p; //lw.LynxForm.Children.Add(fe); lw.setContent(fe); p.Children.Add(lw); Canvas.SetLeft(lw, SP.X); Canvas.SetTop(lw, SP.Y); ActionAnimationShow aas = new ActionAnimationShow(lw); aas.AnimationComplete += new AnimationCompleteEventHandler(aas_AnimationComplete); aas.ShowZoom(2000, SP, EP); //return lw; }
public void ToWindow() { if (lynxWin == null) { lynxWin = new LynxWindow(); } Panel p = Parent as Panel; if (p == null) { return; } if (!p.Children.Contains(lynxWin)) { p.Children.Add(lynxWin); } aas = new ActionAnimationShow(lynxWin); aas.ShowZoomProjection(2000, new Point(Canvas.GetLeft(this), Canvas.GetTop(this)), new Point(Canvas.GetLeft(lynxWin), Canvas.GetTop(lynxWin))); aas.AnimationComplete += new AnimationCompleteEventHandler(aas_AnimationComplete); }
//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); }