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 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; }