private void CompositionTargetOnRendering(object sender, EventArgs e)
{
var time = DateTime.Now - startTime;
var location = scene.GetBallLocation(time);
MainBall.SetValue(Canvas.LeftProperty, location.X);
MainBall.SetValue(Canvas.TopProperty, location.Y);
}
}