System.Windows.Controls.AnimatedPanel.BeginArrange C# (CSharp) Method

BeginArrange() protected method

Creates a new layout animation when an arrange pass starts.
protected BeginArrange ( ) : void
return void
        protected void BeginArrange()
        {
            if (_layoutAnimation != null) {
                if (_layoutAnimation.IsPlaying) {
                    _layoutAnimation.Stop(ProceduralAnimationStopState.Abort);
                }
                _layoutAnimation = null;
            }

            _useAnimation = UseAnimatedLayout;
            _animations = new List<ProceduralAnimation>();

            if (_useAnimation) {
                if (_useDefaultInterpolation) {
                    _interpolation = EasingInterpolation.Default;
                }
                else {
                    _interpolation = Interpolation;
                    if (_interpolation.IsLinearInterpolation) {
                        _interpolation = null;
                    }
                }
                _duration = Duration;
            }
        }