ZForge.Controls.ExplorerBar.Expando.StartFadeAnimation C# (CSharp) Method

StartFadeAnimation() protected method

Gets the Expando ready to start its collapse/expand animation
protected StartFadeAnimation ( ) : void
return void
        protected void StartFadeAnimation()
        {
            //
            this.animatingFade = true;

            //
            this.SuspendLayout();

            // get an image of the client area that we can
            // use for alpha-blending in our animation
            this.animationImage = this.GetFadeAnimationImage();

            // set each control invisible (otherwise they
            // appear to slide off the bottom of the group)
            foreach (Control control in this.Controls)
            {
                control.Visible = false;
            }

            // restart the layout engine
            this.ResumeLayout(false);
        }