private void AnimateSpaceClosing()
{
MinWidth = 0;
var animation = new DoubleAnimation();
animation.Completed += SpaceClosingAnimation_Completed;
animation.From = spaceWidth;
animation.To = 0;
animation.Duration = new Duration(TimeSpan.FromMilliseconds(SPACE_CLOSING_ANIMATION_TIME));
var ease = new CubicEase();
ease.EasingMode = EasingMode.EaseOut;
animation.EasingFunction = ease;
BeginAnimation(WidthProperty, animation);
}