예제 #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);
        }
예제 #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);
        }
예제 #3
0
파일: Graph.cs 프로젝트: jrgcubano/zetbox
 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;
 }