protected void ArrangeChildFluently(UIElement child, Point targetPosition, Size childSize, Duration duration)
{
if (_currentStoryboardDisposable == null)
throw new InvalidOperationException("You must call BeginStoryboard before arranging UI Elements fluently");
var translateTransform = child.RenderTransform as TranslateTransform;
if (translateTransform == null)
child.RenderTransform = translateTransform = new TranslateTransform();
child.Arrange(new Rect(new Point(), childSize));
_currentStoryboardDisposable.AddAnimtation(CreateDoubleAnimation(targetPosition.X,
duration,
child,
TranslateXPath));
_currentStoryboardDisposable.AddAnimtation(CreateDoubleAnimation(targetPosition.Y,
duration,
child,
TranslateYPath));
}