ZForge.Controls.ExplorerBar.Expando.StopFadeAnimation C# (CSharp) Méthode

StopFadeAnimation() protected méthode

Gets the Expando to stop its animation
protected StopFadeAnimation ( ) : void
Résultat void
        protected void StopFadeAnimation()
        {
            //
            this.animatingFade = false;

            //
            this.SuspendLayout();

            // get rid of the image used for the animation
            this.animationImage.Dispose();
            this.animationImage = null;

            // set the final height of the group, depending on
            // whether we are collapsed or expanded
            if (this.collapsed)
            {
                this.Height = this.HeaderHeight;
            }
            else
            {
                this.Height = this.ExpandedHeight;
            }

            // set each control visible again
            foreach (Control control in this.Controls)
            {
                control.Visible = !this.hiddenControls.Contains(control);
            }

            //
            this.ResumeLayout(true);

            if (this.TaskPane != null)
            {
                this.TaskPane.DoLayout();
            }
        }