private void OnShowHint() { Puzzel puzzleToAnimate = puzzleModel.GetCorrectlyOrderedPuzzle(); if (puzzleToAnimate != null) { PuzzleHelper.MoveElementOnCanvas(Puzzles[puzzleToAnimate], puzzleToAnimate.Matrix.Row * puzzleModel.PuzzleSize.Width, puzzleToAnimate.Matrix.Column * puzzleModel.PuzzleSize.Height); puzzleModel.Move(puzzleToAnimate, new Point(puzzleToAnimate.Matrix.Column * puzzleModel.PuzzleSize.Width, puzzleToAnimate.Matrix.Row * puzzleModel.PuzzleSize.Height)); } }