/// <summary> /// Creates a new animation to hide the provided node. /// </summary> /// <param name="node">The node to hide.</param> /// <param name="owner">The PhotoExplorerControl containing the node.</param> /// <returns>A new DoubleAnimation that hides the provided node.</returns> private static DoubleAnimation GetNewHideAnimation(NodePresenter node, PhotoExplorerControl owner) { DoubleAnimation hideAnimation = new DoubleAnimation(0, NodeHideAnimationDuration); hideAnimation.FillBehavior = FillBehavior.Stop; HideAnimationManager hideAnimationManager = new HideAnimationManager(owner, node); hideAnimation.Completed += new EventHandler(hideAnimationManager.CompletedHandler); hideAnimation.Freeze(); return(hideAnimation); }
private static DoubleAnimation GetNewHideAnimation(GraphContentPresenter element, Graph owner, int key) { DoubleAnimation da = new DoubleAnimation(0, HideDuration); da.FillBehavior = FillBehavior.Stop; //da.SetValue(Timeline.DesiredFrameRateProperty, HideDesiredFrameRate); HideAnimationManager ham = new HideAnimationManager(owner, key); da.Completed += new EventHandler(ham.CompletedHandler); da.Freeze(); return(da); }
private static DoubleAnimation GetNewHideAnimation(GraphContentPresenter element, Graph owner, int key) { DoubleAnimation da = new DoubleAnimation(0, HideDuration); da.FillBehavior = FillBehavior.Stop; //da.SetValue(Timeline.DesiredFrameRateProperty, HideDesiredFrameRate); HideAnimationManager ham = new HideAnimationManager(owner, key); da.Completed += new EventHandler(ham.CompletedHandler); da.Freeze(); return da; }