private async void DoAuto() { for (int i = 0; i < 5; i++) { MyEllips.SetCoordinate(Convert.ToInt32(MyEllips.CanvasTop) + 20, Convert.ToInt32(MyEllips.CanvasLeft) + 20); } await Task.Delay(1000); }
private void MoveTop() { MyEllips.SetCoordinate(0, Convert.ToInt32(MyEllips.CanvasTop) - 20); }
private void MoveLeft() { MyEllips.SetCoordinate(0, Convert.ToInt32(MyEllips.CanvasLeft) - 20); }