BouncingBallAccelerate.MainWindow.CompositionTargetOnRendering C# (CSharp) Метод

CompositionTargetOnRendering() приватный Метод

private CompositionTargetOnRendering ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        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);
        }
    }