public async Task DoAnimateAsync(ISelectableObject thisImage) { thisImage.IsSelected = false; GameBoard !.Clear(); GameBoard.AddChild(thisImage); try { GameBoard.SetLocation(thisImage, LocationFrom.X, LocationFrom.Y); } catch (Exception ex) { UIPlatform.ShowError(ex.Message); return; } _startX = (int)LocationFrom.X; // myLocation.X _startY = (int)LocationFrom.Y; // myLocation.Y _destinationX = (int)LocationTo.X; _destinationY = (int)LocationTo.Y; var temps = LongestTravelTime / _interval; _totalSteps = (int)temps; _image = thisImage; await RunAnimations(); }