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;
}
}