Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 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;
 }