void aas_AnimationComplete(object sender, LynxAnimationCompleteEventArgs e) { aas.AnimationComplete -= new AnimationCompleteEventHandler(aas_AnimationComplete); Panel p = Parent as Panel; p.Children.Remove(this); if (!p.Children.Contains(lynxWin)) { p.Children.Add(lynxWin); } }
void aas_AnimationComplete(object sender, LynxAnimationCompleteEventArgs e) { aas.AnimationComplete -= new AnimationCompleteEventHandler(aas_AnimationComplete); Panel DeskPanel = ParentControl.Parent as Panel; DeskPanel.Children.Remove(ParentControl); if (!DeskPanel.Children.Contains(LIcon)) { DeskPanel.Children.Add(LIcon); Canvas.SetLeft(LIcon, Canvas.GetLeft(ParentControl)); Canvas.SetTop(LIcon, Canvas.GetTop(ParentControl)); } }
//static Point ep; //static LynxWindow clw; static void aas_AnimationComplete(object sender, LynxAnimationCompleteEventArgs e) { Canvas.SetLeft(e.AnimationObject, e.EndP.X); Canvas.SetTop(e.AnimationObject, e.EndP.Y); }
public ActionAnimationShow(FrameworkElement fo) { o = fo; BackParameter = new LynxAnimationCompleteEventArgs(this, fo); }