private void SetPositions() { int currCol = this.player.Field.Column; int cols = MapControl.Cols; double width = MapControl.Width; double xPos = ((currCol + 0.5) * (width / cols)) - 25 + (this.turn * 8); PlayerToken.SetValue(Canvas.LeftProperty, xPos); int currRow = this.player.Field.Row; int rows = MapControl.Rows; double heigth = MapControl.Height; double yPos = (heigth / rows * currRow) - 5; PlayerToken.SetValue(Canvas.TopProperty, yPos); }